Skip to content

Commit eb48810

Browse files
committed
fix: loginMethodParams now a Partial
1 parent c31028a commit eb48810

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export enum PromptTypes {
1111
login = "login",
1212
}
1313

14-
export type LoginMethodParams = Pick<
14+
export type LoginMethodParams = Partial<Pick<
1515
LoginOptions,
1616
| "audience"
1717
| "scope"
@@ -25,7 +25,7 @@ export type LoginMethodParams = Pick<
2525
| "redirectURL"
2626
| "hasSuccessPage"
2727
| "workflowDeploymentId"
28-
>;
28+
>>;
2929

3030
export type LoginOptions = {
3131
/** Audience to include in the token */

lib/utils/token/getUserProfile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getDecodedToken } from ".";
1+
import { getClaims, getDecodedToken } from ".";
22

33
export type UserProfile = {
44
id: string;
@@ -11,7 +11,7 @@ export type UserProfile = {
1111
export const getUserProfile = async <T>(): Promise<
1212
(UserProfile & T) | null
1313
> => {
14-
const idToken = await getDecodedToken<{
14+
const idToken = await getClaims<{
1515
sub: string;
1616
given_name: string;
1717
family_name: string;

0 commit comments

Comments
 (0)