Skip to content

Commit 3054ad0

Browse files
rido-minRido
andauthored
Fix connection name handling in token exchange and verify state functions (#350)
Update the handling of connection names in the token exchange and verify state functions to use the context's connection name directly, improving consistency and clarity. --------- Co-authored-by: Rido <[email protected]>
1 parent 3b5e1ef commit 3054ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/apps/src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,14 @@ export class App<TPlugin extends IPlugin = IPlugin> {
317317
name: 'signin.token-exchange',
318318
type: 'system',
319319
select: activity => activity.type === 'invoke' && activity.name === 'signin/tokenExchange',
320-
callback: this.onTokenExchange,
320+
callback: ctx => this.onTokenExchange(ctx),
321321
});
322322

323323
this.router.register({
324324
name: 'signin.verify-state',
325325
type: 'system',
326326
select: activity => activity.type === 'invoke' && activity.name === 'signin/verifyState',
327-
callback: this.onVerifyState,
327+
callback: ctx => this.onVerifyState(ctx),
328328
});
329329

330330
this.event('error', ({ error }) => {

0 commit comments

Comments
 (0)