Redwood and Supabase Auth Example

Thanks @dthyresson. That works :+1:

I have been experimenting with userMetadata and it鈥檚 not clear how I can write to either userMetadata.app_metadata or userMetadata.user_metadata.

Supabase API:

UPDATE USER
const { user, error } = await supabase.auth.update({
  email: "new@email.com",
  password: "new-password",
  data: { hello: 'world' }
})

Should I write a custom function for this? Something like Update user data 路 Issue #23 路 supabase/supabase-js 路 GitHub

I noticed in Docs - Authentication : RedwoodJS Docs that there is an Auth Provider Specific Integration section for most providers but not yet Supabase. If you know of an example or can provide any guidance, that would great. I can update the docs once clear.


Btw, this post might be more suited to this thread Supabase redwood experiments