How i can use betterAuth.api.hasPermission in the backend if i don't have the headers of the user?
I have to check if a user has permissons in the backend, so is trusted but i don't have the headers because is a background job. how i can check the permissons without a header?
1 Reply
You could use the jwt or bearer plugin and just pass the token to the Authorization header