mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
fix(okta): userinfo route mismatch (#7602)
This commit is contained in:
committed by
Alex Yang
parent
33619cc9a3
commit
acf774087d
@@ -53,7 +53,7 @@ export function okta(options: OktaOptions): GenericOAuthConfig {
|
||||
const getUserInfo = async (
|
||||
tokens: OAuth2Tokens,
|
||||
): Promise<OAuth2UserInfo | null> => {
|
||||
const userInfoUrl = `${issuer}/v1/userinfo`;
|
||||
const userInfoUrl = `${issuer}/oauth2/v1/userinfo`;
|
||||
|
||||
const { data: profile, error } = await betterFetch<OktaProfile>(
|
||||
userInfoUrl,
|
||||
|
||||
Reference in New Issue
Block a user