Current User Session gets deleted upon signing up a new user
Hi all ! 
I'm using Supabase for my React app, I have a very simple DB and only use queries that Supabase provides to me in the docs, so I didn't do much configuring to Supabase in my project, pretty much using it like it is.
In my app, I want to be able to make new users, while I am logged in, so they wont be able to sign up, only I can make them inside the app.
When I log in to my account, Supabase stores my session data in local storage, and all works fine.
I then proceed to create a new user in my form on my webpage, using the supabase.auth.signUp function.
The user is then added to the database, so that works great. The issue I have is once i click the button to create a user and the signUp function resolves or is in progress, my current session in local storage gets deleted, which logs me out from the app.
Did you guys have any issues with this ? I of course want to be able to stay in the app, as signing up a new user has nothing to do with me being logged in.
Thank you very much for your advices and opinions in advance. If needed I will share my code with you.
I'm using Supabase for my React app, I have a very simple DB and only use queries that Supabase provides to me in the docs, so I didn't do much configuring to Supabase in my project, pretty much using it like it is.
In my app, I want to be able to make new users, while I am logged in, so they wont be able to sign up, only I can make them inside the app.
When I log in to my account, Supabase stores my session data in local storage, and all works fine.
I then proceed to create a new user in my form on my webpage, using the supabase.auth.signUp function.
The user is then added to the database, so that works great. The issue I have is once i click the button to create a user and the signUp function resolves or is in progress, my current session in local storage gets deleted, which logs me out from the app.
Did you guys have any issues with this ? I of course want to be able to stay in the app, as signing up a new user has nothing to do with me being logged in.
Thank you very much for your advices and opinions in advance. If needed I will share my code with you.