You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the Supabase.GoTrue.Plug or Supabase.GoTrue.LiveView modules injects a bunch of convenience functions to leverage the Plug and LiveView aiming to provide a higher level api to integrate supabase authentication with these frameworks.
after issuing the session into supabase and returning it to the sdk, it tried to update the current scope access token for the client informed in the configuration, using the Supabase.Client.update_access_token/2 function, which used to return only :ok but now return the updated %Supabase.Client{}, that leads to a MatchError preventing to authenticate with those modules.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
use either Supabase.GoTrue.Plug or Supabase.GoTrue.LiveView modules
get your supabase elixir client instance
call any of log_in_with_*/2 or hooks (if live view) with sign in parameters
get the MatchError while updating the current access token from the client
Expected behavior
Supabase.GoTrue.Plug and Supabase.GoTrue.LiveView injected functions should create a new supabase session
Screenshots
Additional context
Bug caught from a open source project that i manage and actively uses supabase elixir sdk, @peapescarte
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
the
Supabase.GoTrue.Plug
orSupabase.GoTrue.LiveView
modules injects a bunch of convenience functions to leverage the Plug and LiveView aiming to provide a higher level api to integrate supabase authentication with these frameworks.after issuing the session into supabase and returning it to the sdk, it tried to update the current scope access token for the client informed in the configuration, using the
Supabase.Client.update_access_token/2
function, which used to return only:ok
but now return the updated%Supabase.Client{}
, that leads to aMatchError
preventing to authenticate with those modules.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Supabase.GoTrue.Plug
orSupabase.GoTrue.LiveView
moduleslog_in_with_*/2
or hooks (if live view) with sign in parametersExpected behavior
Supabase.GoTrue.Plug
andSupabase.GoTrue.LiveView
injected functions should create a new supabase sessionScreenshots
Additional context
Bug caught from a open source project that i manage and actively uses supabase elixir sdk, @peapescarte
The text was updated successfully, but these errors were encountered: