From 2d44d61942f587d2696f2b0c8510b59d378421f2 Mon Sep 17 00:00:00 2001 From: Joachim Van Herwegen Date: Thu, 15 Feb 2024 06:48:11 +0100 Subject: [PATCH] docs: Fix language Co-authored-by: Ted Thibodeau Jr --- src/identity/interaction/InteractionUtil.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/identity/interaction/InteractionUtil.ts b/src/identity/interaction/InteractionUtil.ts index c1c15d4c4..3a1646077 100644 --- a/src/identity/interaction/InteractionUtil.ts +++ b/src/identity/interaction/InteractionUtil.ts @@ -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();