#Payload lib to handle OAuth in this context?

1 messages ยท Page 1 of 1 (latest)

ocean lintelBOT
charred rune
#

Plus their docs quite suck ๐Ÿ˜…

halcyon berry
#

You can add this to the access function of your user collection to restrict access to only allow users that have a admin role to the admin panel.

access: {
  ...
  admin: ({ req: { user } }) =>
    user?.roles.some((role) => role === 'admin') ?? false,
},
charred rune
#

That was not my question, but tnx I guess ๐Ÿ˜„

halcyon berry
#

Ups focused more on the text than the title :)

#

Would it be to integrate authentication from google and the likes? Would need that as well but haven't run into anything so far.