Generate a magic link

1) Can you use the following to get a link to give to the user. Will that log the user in, without needing to receive an actual email?
const { data, error } = await supabase.auth.admin.generateLink({
  type: 'magiclink',
  email: 'email@example.com'
})

2) Assuming 1 is true: For the email field, can you also use another unique identifier?

This would be great option for custom 3rd party (openid) providers.
Was this page helpful?