【问题标题】:How to run supabase functions in the admin API?How to run supabase functions in the admin API?
【发布时间】:2022-12-19 03:18:22
【问题描述】:

I have been using Supabase for a couple months and I really like what I see. User authentication is pretty simple. I have sign up with email verification, sign in, and password reset all working. My question is how to invite a user thoriugh email? There is a function called inviteUserByEmail(), however, it is part of the admin API.

https://supabase.com/docs/reference/javascript/supabase-auth-admin-api says anything that starts with supabase.auth.admin must be called on a trusted server. I don't understand what it means by server. I thought supabase provided what I need? Can anybody offer me an explaination?

I have looked all over the internet and youtube and there are no examples of this anywhere.

【问题讨论】:

    标签: reactjs supabase


    【解决方案1】:

    Admin requests are meant to be used server side. https://supabase.com/docs/reference/javascript/admin-api

    You could try having the same user experience by using the auth signup request https://supabase.com/docs/reference/javascript/auth-signup

    【讨论】:

      猜你喜欢
      • 2022-12-02
      • 2022-12-01
      • 2022-12-01
      • 2022-11-09
      • 2022-12-02
      • 2022-12-02
      • 2022-12-02
      • 2022-12-27
      • 2022-12-02
      相关资源
      最近更新 更多