# Can I use supabase for auth and the rest of the application in my custom backend?

**URL:** <https://community.weweb.io/t/can-i-use-supabase-for-auth-and-the-rest-of-the-application-in-my-custom-backend/8389>\
**Category:** How do I?\
**Created:** [May 1, 2024, 2:17pm UTC](https://community.weweb.io/t/can-i-use-supabase-for-auth-and-the-rest-of-the-application-in-my-custom-backend/8389 "2024-05-01T14:17:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mani](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mani](https://community.weweb.io/u/mani)\
**Post date:** [May 1, 2024, 2:17pm UTC](https://community.weweb.io/t/can-i-use-supabase-for-auth-and-the-rest-of-the-application-in-my-custom-backend/8389/1 "2024-05-01T14:17:12Z")

</div>

I don’t want to get locked into supabase backend. I would like to use weweb for frontend, and use my custom backend for what we’re building. My question is can i just use the auth component of supabase and use my python backend (with each request authenticated of course).

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [May 2, 2024, 9:26pm UTC](https://community.weweb.io/t/can-i-use-supabase-for-auth-and-the-rest-of-the-application-in-my-custom-backend/8389/2 "2024-05-02T21:26:20Z")

</div>

Yes, you can use it as such. I’m not sure if the python will handle the auth, or if you want to incorporate Supabase auth into your existing API. In the case of:

1. Using python token based auth, or whatever else, you’ll probably have to do two things: a) obtain the credential (token) b) store it in local storage, or as a cookie so it can be reused in the following calls.

2. If you’re using Supabase auth in your api also, it’s all handled for you, you just use the plugin to get the token which is handled by weweb, and them you just send that and do your auth middleware on the backend.

Both ways, you can use the premade template (for the UI)
