Setu-TS
    Preparing search index...

    Variable CREDENTIAL_SOURCE_STATE_KEYConst

    CREDENTIAL_SOURCE_STATE_KEY: "auth-plugin:credential-source" = 'auth-plugin:credential-source'

    The ctx.state key under which auth-plugin's authentication middleware records the credential of the strategy that authenticated the request ('header' | 'cookie'); unset when nothing authenticated it. session-plugin's form CSRF reads it: only a request authenticated by a 'header' strategy is exempt, so a junk bearer header beside a session cookie stays verified.

    Exported from common so the two packages agree on the value byte-for-byte instead of each hardcoding the literal — the validatedStateKey precedent.

    const source = ctx.state.get(CREDENTIAL_SOURCE_STATE_KEY) as 'header' | 'cookie' | undefined;
    

    0.10.0