Skip to content

Commit

Permalink
docs: Fix language
Browse files Browse the repository at this point in the history
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
  • Loading branch information
joachimvh and TallTed committed Feb 15, 2024
1 parent ee915f3 commit 6a065f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/identity/interaction/InteractionUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export async function forgetWebId(provider: Provider, oidcInteraction: Interacti
await session.persist();
}

// If a client previously successfully completed an interaction a grant will have been created.
// If the same session gets reused to authenticate with a different WebID,
// we need to first delete the previous grant as the oidc-provider will try to reuse it.
// If a client previously successfully completed an interaction, a grant will have been created.
// If such a session is reused to authenticate with a different WebID, we need to
// first delete the previously created grant, as the oidc-provider will try to reuse it as well.
if (oidcInteraction.grantId) {
const grant = await provider.Grant.find(oidcInteraction.grantId);
await grant?.destroy();
Expand Down

0 comments on commit 6a065f2

Please sign in to comment.