Open arobert93 opened 4 months ago
This is related to GoTrueClient.
GoTrueClient
When settings detectSessionInUrl to false it is not used when flowType is pkce.
detectSessionInUrl
false
flowType
pkce
Due to this initialization code of GoTrueClient:
private async _initialize(): Promise<InitializeResult> { try { const isPKCEFlow = isBrowser() ? await this._isPKCEFlow() : false this._debug('#_initialize()', 'begin', 'is PKCE flow', isPKCEFlow) if (isPKCEFlow || (this.detectSessionInUrl && this._isImplicitGrantFlow())) { const { data, error } = await this._getSessionFromURL(isPKCEFlow)
I expect it to respect the detectSessionInUrl configuration.
What's your use-case here?
@j4w8n I need to have full control over the flow. On initialize it automatically reads the URL and removes the params then uses them. I want to manually handle this.
Bug report
Describe the bug
This is related to
GoTrueClient
.When settings
detectSessionInUrl
tofalse
it is not used whenflowType
ispkce
.To Reproduce
Due to this initialization code of GoTrueClient:
Expected behavior
I expect it to respect the
detectSessionInUrl
configuration.Screenshots
System information
Additional context