Optional getSessionHeaders
parameter to getSession
function of useAuth
composable
#972
Open
2 of 5 tasks
Labels
Describe the feature
Feature
It would be great if there will be an optional parameter
getSessionHeaders
(and maybegetSessionParams
) ingetSession
funciton ofuseAuth
composable forlocal
provider.Why?
In some cases a developer needs to pass a parameter (or multiple) to the custom authentication backend to get authenticated session data.
It is done properly in
signIn
function ofuseAuth
composable in local provider:nuxt-auth/src/runtime/composables/local/useAuth.ts
Lines 18 to 78 in 52d4b9a
Example case when it is needed
I am currently using
supabase
as an auth backend, and for all the API requests it is required to passapikey
header.How would you implement this?
No response
Additional information
Provider
The text was updated successfully, but these errors were encountered: