mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
chore: should clear connector session after getSession() (#2693)
This commit is contained in:
parent
c552c93e4c
commit
07f870d774
1 changed files with 6 additions and 1 deletions
|
@ -181,7 +181,12 @@ export const getConnectorSessionResult = async (
|
|||
})
|
||||
.safeParse(result);
|
||||
|
||||
assertThat(signInResult.success, 'session.connector_validation_session_not_found');
|
||||
assertThat(result && signInResult.success, 'session.connector_validation_session_not_found');
|
||||
|
||||
const { connectorSession, ...rest } = result;
|
||||
await provider.interactionResult(ctx.req, ctx.res, {
|
||||
...rest,
|
||||
});
|
||||
|
||||
return signInResult.data.connectorSession;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue