Swift app to Next.js backend
Unanswered
Tomistoma posted this in #help-forum
TomistomaOP
Hello, I currently have a swift app that I want to take the backend out of and convert into a rest api. The app currently authenticates with email and password. I would ideally like to keep the apps sign in flow, pass data to the backend to sign them and and then pass the app back a JWT which I can use to authenticate all further api requests. I was wondering what the best way to handle this issue would be
1 Reply
@Tomistoma Hello, I currently have a swift app that I want to take the backend out of and convert into a rest api. The app currently authenticates with email and password. I would ideally like to keep the apps sign in flow, pass data to the backend to sign them and and then pass the app back a JWT which I can use to authenticate all further api requests. I was wondering what the best way to handle this issue would be
You can use nextjs's api routes as any other api