Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions regarding custom tokens #1

Closed
fotoflo opened this issue Jul 4, 2022 · 2 comments
Closed

Questions regarding custom tokens #1

fotoflo opened this issue Jul 4, 2022 · 2 comments

Comments

@fotoflo
Copy link

fotoflo commented Jul 4, 2022

Hello, thank you for putting this important example together!

my app will use tokens from two different providers - google and github to make different calls.

With google I will initially log the user in with their Profile scope and later I will upgrade their scope to get the API we need access to.

Can you explain a little how this should work?

After running your example Im getting an error that the user cannot access the data - if i open up the access rules, then they can.

I've spent a couple of days on this already TBH and still cant figure out how to get the tokens to the user or how to auth the user to write to the database with the rules locked down properly.

thank you!!

@lowfront
Copy link
Owner

Hi, Can you pass me an example that doesn't work?

Scope is supposed to be set through NextAuth's provider, but I'm not sure if NextAuth supports scope expansion.

This example shows how to properly separate access rights when using NextAuth and Firebase.

I think you can only do what you want if NextAuth supports the feature.

@fotoflo
Copy link
Author

fotoflo commented Aug 23, 2022

Hi there! I managed to get scope expansion to work... but token refresh is not implemented i don't think?

@fotoflo fotoflo closed this as completed Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants