Next.js Discord

Discord Forum

Supabase Question in Server Side and Client Side

Answered
Ejayz || PiggyDev posted this in #help-forum
Open in Discord
So if i am using nextjs as API I can just use the server side Supabase library to manage data right and all i need is save the token it gives me to the client side and everytime i request pass that ? Thank you
Answered by B33fb0n3
that sounds like a possible solution, yes
View full answer

12 Replies

Answer
then it would be a good thing. I just plan to move the android side into an offline mode then nextjs to none offline mode . now i can save the user data like user id and stuff
@Ejayz || PiggyDev then it would be a good thing. I just plan to move the android side into an offline mode then nextjs to none offline mode . now i can save the user data like user id and stuff
if the android side is offline and the nextjs side online then just keep the sync in mind. Else yea, why not 👍
@Ejayz || PiggyDev no it will be online but if no itnernet it can be offline mode
and will be synced after the person is online again?
yes.
thats the plan
atleast the plan lmao
Yea, sounds like a solid plan and should be integrateable with nextjs
yes. nextjs will be the front end for web app and api for mobile
@Ejayz || PiggyDev yes. nextjs will be the front end for web app and api for mobile
yea, is you initial issue resolved like that?
Feel free to mark a different message if that's not the solution