Skip to content

Commit

Permalink
Merge pull request #78 from kinde-oss/fix/login-register-interface
Browse files Browse the repository at this point in the history
fix: interface params for login and logout methods for state
  • Loading branch information
DanielRivers authored Mar 7, 2025
2 parents a2099e0 + 18b8dfe commit f7cc9db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/KindeContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import type {
} from "@kinde/js-utils";

export interface KindeContextProps extends State {
login: (options?: LoginMethodParams) => Promise<void>;
register: (options?: LoginMethodParams) => Promise<void>;
login: (options?: LoginMethodParams & { state?: Record<string, string> }) => Promise<void>;
register: (options?: LoginMethodParams & { state?: Record<string, string> }) => Promise<void>;
logout: (redirectUri?: string) => Promise<void>;
getClaims: typeof getClaims;
getIdToken: () => Promise<string | undefined>;
Expand Down

0 comments on commit f7cc9db

Please sign in to comment.