janek
janek
KKinde
Created by Tony on 6/19/2024 in #💻┃support
WebBrowser.openBrowserAsync error
ahh, I see this problem is fixed in 1.3.0 but I had to manually set the showInRecents property to true. I think you can describe this in the docs, because I wouldn't have known about it if I hadn't cloned the kinde-expo repo and checked how it works under the hood.
const tokenResponse = await authClient.register({},{
showInRecents: true
})
const tokenResponse = await authClient.register({},{
showInRecents: true
})
10 replies
KKinde
Created by Tony on 6/19/2024 in #💻┃support
WebBrowser.openBrowserAsync error
and when it will be available? 🤔
10 replies
KKinde
Created by Tony on 6/19/2024 in #💻┃support
WebBrowser.openBrowserAsync error
hi, what changes do you plan in a new expo sdk? currently the login function does not work on Android as the browser is not persisted in a background when changing to gmail for example to copy the OTP code
10 replies
KKinde
Created by Isak on 4/24/2024 in #💻┃support
Chaining Middlewares Next.JS Kinde + next-international
Yes, I am using intl-middleware and auth-middleware from Kinde and all auth endpoints delivered by Kinde I have to exclude from the intl-middleware like following
import { NextRequest } from 'next/server';
import createMiddleware from 'next-intl/middleware';
import { AppConfig } from './utils/app-config';
import { withAuth } from '@kinde-oss/kinde-auth-nextjs/middleware';

const intlMiddleware = createMiddleware({
locales: AppConfig.locales,
localePrefix: AppConfig.localePrefix,
defaultLocale: AppConfig.defaultLocale,
});

const excluded = [
'/api/auth/login',
'/api/auth/logout',
'/api/auth/kinde_callback',
'/api/kindeSession',
]

export function middleware(req: NextRequest) {
if (excluded.includes(req.nextUrl.pathname)) {
return
}

let response = intlMiddleware(req)
if (req.nextUrl.pathname === '/user') {
return withAuth(req)
}

return response
}

export const config = {
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
};
import { NextRequest } from 'next/server';
import createMiddleware from 'next-intl/middleware';
import { AppConfig } from './utils/app-config';
import { withAuth } from '@kinde-oss/kinde-auth-nextjs/middleware';

const intlMiddleware = createMiddleware({
locales: AppConfig.locales,
localePrefix: AppConfig.localePrefix,
defaultLocale: AppConfig.defaultLocale,
});

const excluded = [
'/api/auth/login',
'/api/auth/logout',
'/api/auth/kinde_callback',
'/api/kindeSession',
]

export function middleware(req: NextRequest) {
if (excluded.includes(req.nextUrl.pathname)) {
return
}

let response = intlMiddleware(req)
if (req.nextUrl.pathname === '/user') {
return withAuth(req)
}

return response
}

export const config = {
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
};
8 replies
KKinde
Created by Isak on 4/24/2024 in #💻┃support
Chaining Middlewares Next.JS Kinde + next-international
hi @WiESA did you solve the problem? If so, could you show the code?
8 replies