Add another auth log

This commit is contained in:
austinkelsay 2024-10-04 15:05:24 -05:00
parent 9b614896ce
commit 3e1e369f1f

View File

@ -106,6 +106,7 @@ export const authOptions = {
// todo this does not work on first login only the second time
if (user && appConfig.authorPubkeys.includes(user?.pubkey) && !user?.role) {
console.log("user in appConfig condition", user);
// create a new author role for this user
const role = await createRole({
userId: user.id,