We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { UserManager, UserManagerSettings, WebStorageStateStore } from "oidc-client-ts"; import { appConfig } from "./appConfig"; const ums: UserManagerSettings = { userStore: new WebStorageStateStore({ store: window.localStorage }), authority: appConfig.eamConfig?.authority!, redirect_uri: appConfig.eamConfig?.successRedirectUri || '', post_logout_redirect_uri: appConfig.eamConfig?.logoutUri, client_id: appConfig.eamConfig?.clientId || '', response_type: "code", scope: appConfig.eamConfig?.scope, automaticSilentRenew: true, silent_redirect_uri: "http://localhost:3000/signin-redirect-success", }; export const userManager = new UserManager(ums);
const user = await userManager.getUser(); user is null
The text was updated successfully, but these errors were encountered:
Unable to return email, FamilyName, GivenName
Sorry, something went wrong.
Are you starting the signin? You need to call e.g. userManager.signinRedirect first. Then you must handle the callback, ... See https://github.com/authts/oidc-client-ts/blob/main/docs/protocols/authorization-code-grant-with-pkce.md
userManager.signinRedirect
Enabling logging also help you, see https://authts.github.io/oidc-client-ts/#md:logging
No branches or pull requests
import { UserManager, UserManagerSettings, WebStorageStateStore } from "oidc-client-ts";
import { appConfig } from "./appConfig";
const ums: UserManagerSettings = {
userStore: new WebStorageStateStore({ store: window.localStorage }),
authority: appConfig.eamConfig?.authority!,
redirect_uri: appConfig.eamConfig?.successRedirectUri || '',
post_logout_redirect_uri: appConfig.eamConfig?.logoutUri,
client_id: appConfig.eamConfig?.clientId || '',
response_type: "code",
scope: appConfig.eamConfig?.scope,
automaticSilentRenew: true,
silent_redirect_uri: "http://localhost:3000/signin-redirect-success",
};
export const userManager = new UserManager(ums);
const user = await userManager.getUser();
user is null
The text was updated successfully, but these errors were encountered: