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
[X] Would you be willing to help implement this feature?
Describe the feature
A set of simple server-side functions that mirror
getServerSession
andgetToken
from theauthjs
provider, but for thelocal
andrefresh
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
Provider