K
Kinde6d ago
Tito

How to show signup page with expo-starter-kit?

At https://github.com/kinde-starter-kits/expo-starter-kit/blob/main/app/index.tsx , the button below sends to the login page.
<Button
title="Login"
onPress={() => {
authenticate({ prompt: "login" });
}}
/>
<Button
title="Login"
onPress={() => {
authenticate({ prompt: "login" });
}}
/>
I tried to redirect instead to the signup / create account page by changing the prompt to register and signup but it didn't work. What should I do to redirect customers to signup instead of login? Or even better, is there an agnostic page that simply signs in if the account (email) exists and signs up if account (email) doesn't exist?
GitHub
expo-starter-kit/app/index.tsx at main · kinde-starter-kits/expo-st...
Contribute to kinde-starter-kits/expo-starter-kit development by creating an account on GitHub.
4 Replies
Abdelrahman Zaki
Hi Tito Thanks for reach out. Could you confirm which version of the SDK you're using?
Tito
TitoOP6d ago
This is all i am using (basically taking from expo-starter-kit):
"@kinde/js-utils": "^0.7.1",
"@kinde/jwt-validator": "^0.4.0",
"expo-auth-session": "~6.0.3",
"expo-web-browser": "~14.0.2",
"@kinde/js-utils": "^0.7.1",
"@kinde/jwt-validator": "^0.4.0",
"expo-auth-session": "~6.0.3",
"expo-web-browser": "~14.0.2",
React Native SDK didn't work for me on expo (i think due to encrypted storage conflict in expo) and the expo sdk isn't really functional yet and didn't work for me. If I use prompt: "signup", it still goes to the same login page. If I use prompt: "register", it shows an error on the landing page.
Abdelrahman Zaki
Hi Tito, Thanks for providing the details. Let me replicate this issue on my end and see if I can reproduce the behavior. I'll get back to you with an update. In the meantime, could you confirm if you're using a custom authorization URL in your Kinde settings? Sometimes, the prompt values depend on how the authentication flow is configured on Kinde's side.
Tito
TitoOP4d ago
i don't know what a custom authorization URL is, i am running something very close to the expo-starter-kit streckenheld.kinde.com is my endpoint

Did you find this page helpful?