Daniel237
Daniel237
KKinde
Created by Daniel237 on 6/18/2024 in #💻┃support
No audience for token in react native
Tried spaces but does not work, the audience becomes blank
11 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
Will be able to it in a week or so, it's a uni project that should not be on the internet until I present it
34 replies
KKinde
Created by Daniel237 on 6/18/2024 in #💻┃support
No audience for token in react native
Ok, this seems to work but for one audience only, how can I set it up for multiple audiences at once?
11 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
I tried to change the env variable but the issue stood for as long as I had the middleware there
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
No description
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
And here are the callback urls set in kinde app settings
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
KINDE_SITE_URL=http://localhost:3000
KINDE_POST_LOGOUT_REDIRECT_URL=http://localhost:3000
KINDE_POST_LOGIN_REDIRECT_URL=http://localhost:3000/dashboard
KINDE_AUDIENCE=http://localhost:5010 http://localhost:5020
KINDE_SITE_URL=http://localhost:3000
KINDE_POST_LOGOUT_REDIRECT_URL=http://localhost:3000
KINDE_POST_LOGIN_REDIRECT_URL=http://localhost:3000/dashboard
KINDE_AUDIENCE=http://localhost:5010 http://localhost:5020
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
I'm not sure I understand where the issue lies, so I will give you the exact values I have
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
@Daniel_Kinde I myself have been on some leave, now back to it
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
https://transportal-dev.eu.kinde.com/oauth2/auth?state=38ed18df36eecad3e20675fcd2d4&client_id=0fac190ff30b4ab5ae4da223e0b378a9&redirect_uri=http://localhost:3000/api/auth/kinde_callback&response_type=code&scope=openid profile email offline&audience=http://localhost:5010&audience=http://localhost:5020
https://transportal-dev.eu.kinde.com/oauth2/auth?state=38ed18df36eecad3e20675fcd2d4&client_id=0fac190ff30b4ab5ae4da223e0b378a9&redirect_uri=http://localhost:3000/api/auth/kinde_callback&response_type=code&scope=openid profile email offline&audience=http://localhost:5010&audience=http://localhost:5020
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
No description
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
No description
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
I was using the "withAuth" method in order to help me protect routes, and the only solution I found to the issue that came up when I written this post was deleting the middleware entirely and therefore not having protected routes. With the new authMiddlware example you gave me, I do not seem to get that Authentication flow error, but for some reason now when I log in, I cannot enter any of the pages I specify in that config.matcher array
import { authMiddleware } from "@kinde-oss/kinde-auth-nextjs/server";

export const config = {
matcher: ["/dashboard", "/trips", "/routes"],
};

export default authMiddleware;
import { authMiddleware } from "@kinde-oss/kinde-auth-nextjs/server";

export const config = {
matcher: ["/dashboard", "/trips", "/routes"],
};

export default authMiddleware;
This is what I have now, I cannot enter any of those pages, and the issue is that the "/dashboard" is the post login redirect url
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
Yes, I am using 2.3.1 @Andre @ Kinde
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
How can I check?
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
I am using NextJS App Router SDK
34 replies
KKinde
Created by Daniel237 on 6/18/2024 in #💻┃support
No audience for token in react native
It is a blocker, but it can wait.
11 replies
KKinde
Created by Daniel237 on 6/18/2024 in #💻┃support
No audience for token in react native
I did all the steps and there is still no audience claim
11 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
@Daniel_Kinde
34 replies
KKinde
Created by Daniel237 on 6/7/2024 in #💻┃support
Authentication flow: Received : key | Expected: State not found
yes, login, logout work with my env variables, only protecting routes through middleware does not. And the strange thing is that this happened overnight, without changing anything to the app
34 replies