noravux
08/09/2021, 2:31 PMScott P
08/09/2021, 2:40 PMnoravux
08/09/2021, 2:54 PMScott P
08/09/2021, 3:12 PMjsx
export const supabaseClient = createClient(
Constants.manifest.extra.supabaseEndpoint,
Constants.manifest.extra.supabaseClientKey,
{
localStorage: AsyncStorage as any,
autoRefreshToken: true,
persistSession: true,
}
);
You might be able to switch out asyncStorage for secure storage (e.g. https://docs.expo.dev/versions/latest/sdk/securestore/) instead. I can't say I've tried, so I don't know for sure if it works. I believe the refresh token and auth token are both stored as separate keys, but it's also been a few months since I dug into it so I might be wrong about that.noravux
08/09/2021, 3:16 PM