Supabase authorization with services

  • robertg5128-1342533336890867724

    RobertG

    23 hours ago

    Can you use the new Services feature to do Supabase authentication APIs? When I connect my Supabase to the project and look at the list of endpoints I see them for the tables I create, but not for authentication like you do with Xano.
  • plusmin-1342615875588456519

    Armand

    17 hours ago

    Yes, just select the POST option
  • Then set the URL
    1342616071370182729-Screenshot_2568-02-22_at_04.53.43.png
    👍1
  • The parameters (like this if you use email/password to authenticate)
    1342616204422156349-Screenshot_2568-02-22_at_04.54.10.png
  • the header
    1342616272357032037-Screenshot_2568-02-22_at_04.54.24.png
  • the body (again, like this if you use email/password to authenticate)
    1342616367727378522-Screenshot_2568-02-22_at_04.54.45.png
  • on the Success event set the session cookie
    1342616467497160724-Screenshot_2568-02-22_at_04.55.20.png
  • On the Success event of setting the session cookie, set whatever you want to happen when someone is authenticate, but most likely something like this
    1342616709474947102-Screenshot_2568-02-22_at_04.55.40.png
  • some of above may have already been set, some you may need to add and some you may need to adjust

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.