Skip to content

Commit

Permalink
Update default value as undefined for ayncronous function
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimpeiKamiguchi committed Jul 29, 2024
1 parent 07a3600 commit 4d938ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-oidc/src/ReactOidc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const useOidc = (configurationName = defaultConfigurationName) => {

const login = (
callbackPath: string | undefined = undefined,
extras: StringMap | null = null,
extras: StringMap | undefined = undefined,
silentLoginOnly = false,
) => {
return getOidc(configurationName).loginAsync(
Expand All @@ -59,12 +59,12 @@ export const useOidc = (configurationName = defaultConfigurationName) => {
};
const logout = (
callbackPath: string | null | undefined = undefined,
extras: StringMap | null = null,
extras: StringMap | undefined = undefined,
) => {
return getOidc(configurationName).logoutAsync(callbackPath, extras);
};
const renewTokens = async (
extras: StringMap | null = null,
extras: StringMap | undefined = undefined,
): Promise<OidcAccessToken | OidcIdToken> => {
const tokens = await getOidc(configurationName).renewTokensAsync(extras);

Expand Down

0 comments on commit 4d938ef

Please sign in to comment.