Skip to content

Commit 30fda23

Browse files
feat(oidc-react): add missing scope property in login route (release)
1 parent 4d77aae commit 30fda23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-oidc/src/ReactOidc.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ export const useOidc = (configurationName = defaultConfigurationName) => {
4848
callbackPath: string | undefined = undefined,
4949
extras: StringMap | undefined = undefined,
5050
silentLoginOnly = false,
51+
scope: string = undefined,
5152
) => {
5253
return getOidc(configurationName).loginAsync(
5354
callbackPath,
5455
extras,
5556
false,
56-
undefined,
57+
scope,
5758
silentLoginOnly,
5859
);
5960
};

0 commit comments

Comments
 (0)