Skip to content

Commit

Permalink
Pass in statement from authCallbackParams to signSessionKey (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwrdtm authored Jul 30, 2023
1 parent dd0cf35 commit d7d4bfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lit-auth-client/src/lib/providers/BaseProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export abstract class BaseProvider {
const authSig = JSON.parse(params.authMethod.accessToken);
response = await nodeClient.signSessionKey({
sessionKey: params.sessionSigsParams.sessionKey,
statement: authCallbackParams.statement,
authMethods: [],
authSig: authSig,
pkpPublicKey: params.pkpPublicKey,
Expand All @@ -144,6 +145,7 @@ export abstract class BaseProvider {
} else {
response = await nodeClient.signSessionKey({
sessionKey: params.sessionSigsParams.sessionKey,
statement: authCallbackParams.statement,
authMethods: [params.authMethod],
pkpPublicKey: params.pkpPublicKey,
expiration: authCallbackParams.expiration,
Expand Down

1 comment on commit d7d4bfb

@vercel
Copy link

@vercel vercel bot commented on d7d4bfb Jul 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.