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

Add server-side access to tokens and session for the local and refresh providers #854

Open
3 of 5 tasks
zoey-kaiser opened this issue Aug 9, 2024 · 0 comments · May be fixed by #855
Open
3 of 5 tasks

Add server-side access to tokens and session for the local and refresh providers #854

zoey-kaiser opened this issue Aug 9, 2024 · 0 comments · May be fixed by #855
Labels
enhancement An improvement that needs to be added provider-local An issue with the local provider provider-refresh An issue with the refresh provider

Comments

@zoey-kaiser
Copy link
Member

Describe the feature

A set of simple server-side functions that mirror getServerSession and getToken from the authjs provider, but for the local and refresh providers.

How would you implement this?

Add the two new functions, extract the token via the cookie from the h3 event. To retrieve the session data, use the token and send a backend request to the configured authentication API and return the data.

Additional information

  • Would you be willing to help implement this feature?

Provider

  • AuthJS
  • Local
  • Refresh
  • New Provider
@zoey-kaiser zoey-kaiser added enhancement An improvement that needs to be added pending An issue waiting for triage labels Aug 9, 2024
@zoey-kaiser zoey-kaiser added provider-local An issue with the local provider provider-refresh An issue with the refresh provider and removed pending An issue waiting for triage labels Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement that needs to be added provider-local An issue with the local provider provider-refresh An issue with the refresh provider
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant