Permission doesn't work
I added an "admin" permission to a user.
However,
await getPermissions()
returns no permissions: { permissions: [], orgCode: 'org_bcddc426a6d' }
And, await getPermission()
returns not granted: { orgCode: 'org_bcddc426a6d', isGranted: false }
What am I missing?moroshko•21d ago
Oh, it bit me again.
I had to logout and login again for the permission to take effect. All good now 🙂
1KMembers
View on DiscordWant results from more Discord servers?
More PostsHow to sign the user out when /logout is visited?In my Next.js App Router application, I'd like to automatically sign the user out when the user visiShould I include user model in database schema? And how to handle users registering their business?Hi, how should I handle database schema while using Kinde? Should I try for creating user model in misAuthenticated === false vs user === nullIs there any difference (maybe performance?) between:
```
import { getKindeServerSession } from "@kiMulti-factor auth using SMS - Where is the user's phone number stored?I enabled "Multi-factor authentication". The first time I logged in using Google, I was asked to ent