RobSchilderr / nextjs-native-starter

One Next.js codebase for iOS, Android and Web using Capacitor, TailwindCSS and authentication with Supertokens, written in Typescript
https://nextjs-native.com
166 stars 15 forks source link

Change social login redirect API to include all query params to fix SuperTokens login on iOS #1

Closed nkshah2 closed 1 year ago

nkshah2 commented 1 year ago

Summary of the problem

The original API would only include the code query param when redirecting to the app, this would mean that information like scope and state would get lost and the login would fail because SuperTokens expects a state to be present

Summary of the solution

As a fix and to make this future proof the redirect API has been changed to include all current query params received by the API in the redirect url when redirecting back to the app

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
capacitor-supertokens-nextjs-turborepo-next-web ❌ Failed (Inspect) Jan 13, 2023 at 10:32AM (UTC)