Skip to content

Commit

Permalink
update register session method
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalavedra committed Mar 21, 2024
1 parent 8ecdb06 commit 641ab42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfort/openfort-js",
"version": "0.5.24",
"version": "0.5.25",
"description": "",
"author": "Openfort",
"repository": {
Expand Down
4 changes: 1 addition & 3 deletions src/openfort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default class Openfort {
return result.data;
}

public async sendSignatureSessionRequest(
public async sendRegisterSessionRequest(
sessionId: string,
signature: string,
optimistic?: boolean,
Expand All @@ -231,8 +231,6 @@ export default class Openfort {
throw new NoSignerConfigured("Session signer must be configured to sign a session");
}

signature = await this._signer.sign(sessionId);

this.recoverPublishableKey();
const sessionsApi = new SessionsApi(new Configuration({accessToken: this._publishableKey}));
const result = await sessionsApi.signatureSession(sessionId, {signature, optimistic});
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const VERSION = "0.5.24";
export const VERSION = "0.5.25";
export const PACKAGE = "@openfort/openfort-js";

0 comments on commit 641ab42

Please sign in to comment.