Commit eb48810 1 parent c31028a commit eb48810 Copy full SHA for eb48810
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export enum PromptTypes {
11
11
login = "login" ,
12
12
}
13
13
14
- export type LoginMethodParams = Pick <
14
+ export type LoginMethodParams = Partial < Pick <
15
15
LoginOptions ,
16
16
| "audience"
17
17
| "scope"
@@ -25,7 +25,7 @@ export type LoginMethodParams = Pick<
25
25
| "redirectURL"
26
26
| "hasSuccessPage"
27
27
| "workflowDeploymentId"
28
- > ;
28
+ > > ;
29
29
30
30
export type LoginOptions = {
31
31
/** Audience to include in the token */
Original file line number Diff line number Diff line change 1
- import { getDecodedToken } from "." ;
1
+ import { getClaims , getDecodedToken } from "." ;
2
2
3
3
export type UserProfile = {
4
4
id : string ;
@@ -11,7 +11,7 @@ export type UserProfile = {
11
11
export const getUserProfile = async < T > ( ) : Promise <
12
12
( UserProfile & T ) | null
13
13
> => {
14
- const idToken = await getDecodedToken < {
14
+ const idToken = await getClaims < {
15
15
sub : string ;
16
16
given_name : string ;
17
17
family_name : string ;
You can’t perform that action at this time.
0 commit comments