docs: Fix language

Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
This commit is contained in:
Joachim Van Herwegen 2024-02-15 06:48:11 +01:00
parent 68975e6627
commit 2d44d61942

View File

@ -87,9 +87,9 @@ export async function forgetWebId(provider: Provider, oidcInteraction: Interacti
await session.persist(); await session.persist();
} }
// If a client previously successfully completed an interaction a grant will have been created. // 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, // If such a session is reused to authenticate with a different WebID, we need to
// we need to first delete the previous grant as the oidc-provider will try to reuse it. // first delete the previously created grant, as the oidc-provider will try to reuse it as well.
if (oidcInteraction.grantId) { if (oidcInteraction.grantId) {
const grant = await provider.Grant.find(oidcInteraction.grantId); const grant = await provider.Grant.find(oidcInteraction.grantId);
await grant?.destroy(); await grant?.destroy();