Skip to content

Commit

Permalink
Merge branch '6.1' into 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh committed Aug 13, 2021
2 parents e834d18 + beb748b commit b15a195
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions lib/build/recipe/session/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ export default class SessionWrapper {
static getAllSessionHandlesForUser(userId: string): Promise<string[]>;
static revokeSession(sessionHandle: string): Promise<boolean>;
static revokeMultipleSessions(sessionHandles: string[]): Promise<string[]>;
/** @deprecated Use getSessionInformation instead **/
static getSessionData(sessionHandle: string): Promise<any>;
static updateSessionData(sessionHandle: string, newSessionData: any): Promise<void>;
/** @deprecated Use getSessionInformation instead **/
static getJWTPayload(sessionHandle: string): Promise<any>;
static updateJWTPayload(sessionHandle: string, newJWTPayload: any): Promise<void>;
static verifySession: (
Expand All @@ -47,8 +49,10 @@ export declare let revokeAllSessionsForUser: typeof SessionWrapper.revokeAllSess
export declare let getAllSessionHandlesForUser: typeof SessionWrapper.getAllSessionHandlesForUser;
export declare let revokeSession: typeof SessionWrapper.revokeSession;
export declare let revokeMultipleSessions: typeof SessionWrapper.revokeMultipleSessions;
/** @deprecated Use getSessionInformation instead **/
export declare let getSessionData: typeof SessionWrapper.getSessionData;
export declare let updateSessionData: typeof SessionWrapper.updateSessionData;
/** @deprecated Use getSessionInformation instead **/
export declare let getJWTPayload: typeof SessionWrapper.getJWTPayload;
export declare let updateJWTPayload: typeof SessionWrapper.updateJWTPayload;
export declare let verifySession: (
Expand Down
4 changes: 4 additions & 0 deletions lib/build/recipe/session/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/build/recipe/session/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ export interface RecipeInterface {
getAllSessionHandlesForUser(input: { userId: string }): Promise<string[]>;
revokeSession(input: { sessionHandle: string }): Promise<boolean>;
revokeMultipleSessions(input: { sessionHandles: string[] }): Promise<string[]>;
/** @deprecated Use getSessionInformation() instead **/
/** @deprecated Use getSessionInformation instead **/
getSessionData(input: { sessionHandle: string }): Promise<any>;
updateSessionData(input: { sessionHandle: string; newSessionData: any }): Promise<void>;
/** @deprecated Use getSessionInformation() instead **/
/** @deprecated Use getSessionInformation instead **/
getJWTPayload(input: { sessionHandle: string }): Promise<any>;
updateJWTPayload(input: { sessionHandle: string; newJWTPayload: any }): Promise<void>;
getAccessTokenLifeTimeMS(): Promise<number>;
Expand Down
4 changes: 4 additions & 0 deletions lib/ts/recipe/session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default class SessionWrapper {
return Recipe.getInstanceOrThrowError().recipeInterfaceImpl.revokeMultipleSessions({ sessionHandles });
}

/** @deprecated Use getSessionInformation instead **/
static getSessionData(sessionHandle: string) {
return Recipe.getInstanceOrThrowError().recipeInterfaceImpl.getSessionData({ sessionHandle });
}
Expand All @@ -81,6 +82,7 @@ export default class SessionWrapper {
});
}

/** @deprecated Use getSessionInformation instead **/
static getJWTPayload(sessionHandle: string) {
return Recipe.getInstanceOrThrowError().recipeInterfaceImpl.getJWTPayload({ sessionHandle });
}
Expand Down Expand Up @@ -116,10 +118,12 @@ export let revokeSession = SessionWrapper.revokeSession;

export let revokeMultipleSessions = SessionWrapper.revokeMultipleSessions;

/** @deprecated Use getSessionInformation instead **/
export let getSessionData = SessionWrapper.getSessionData;

export let updateSessionData = SessionWrapper.updateSessionData;

/** @deprecated Use getSessionInformation instead **/
export let getJWTPayload = SessionWrapper.getJWTPayload;

export let updateJWTPayload = SessionWrapper.updateJWTPayload;
Expand Down
4 changes: 2 additions & 2 deletions lib/ts/recipe/session/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ export interface RecipeInterface {

revokeMultipleSessions(input: { sessionHandles: string[] }): Promise<string[]>;

/** @deprecated Use getSessionInformation() instead **/
/** @deprecated Use getSessionInformation instead **/
getSessionData(input: { sessionHandle: string }): Promise<any>;

updateSessionData(input: { sessionHandle: string; newSessionData: any }): Promise<void>;

/** @deprecated Use getSessionInformation() instead **/
/** @deprecated Use getSessionInformation instead **/
getJWTPayload(input: { sessionHandle: string }): Promise<any>;

updateJWTPayload(input: { sessionHandle: string; newJWTPayload: any }): Promise<void>;
Expand Down

0 comments on commit b15a195

Please sign in to comment.