Jason Creviston

Results 148 comments of Jason Creviston

> I found the issue. It will show error if you declare `const a = { document } = { document: true }​` in another js file then `require('other.js')​` in...

There were issues with `window`, because it exists in React Native and was causing problems; so they changed it to `document`. At this point I'm wondering if what happened to...

Correct me if I'm wrong, but couldn't this also be used to authenticate supabase clients, for RLS, during API requests? This assumes a Supabase JWT is being used as the...

To take advantage of the exchange code route method, you need to set auth > flowType option to pkce for your supabase client

> > However, the query parameter looks like this: > exp://127.0.0.1:8081/--/resetPassword#access_token=123&expires_in=3600&refresh_token=123&token_type=bearer&type=recovery" > > Multiple problems here: > > 1. As @j4w8n mentioned you need flowtype set to pkce. > 2....

You should also be able to set the client's `auth` > `persistSession` option as `false`. This will cause the session to be stored in memory. Either way, you are correct...

> > You should also be able to set the client's `auth` > `persistSession` option as `false`. This will cause the session to be stored in memory. > > >...

Glad you got it working. There are some links to examples, which talk about passing global headers. https://supabase.com/docs/guides/functions 👇 https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts#L26