Skip to content

AuthenticatorApi

type AuthenticatorApi =
| {
_tag: "Header"
authenticate: (
header: Option.Option<Redacted.Redacted<string>>,
) => Effect.Effect<
string,
AuthenticationFailed | AuthenticatorUnavailable
>
issuer?: string
}
| {
_tag: "Mtls"
authenticate: (
peer: VerifiedCertificate,
) => Effect.Effect<string, AuthenticationFailed>
tls: TlsPolicy
}
| {
_tag: "None"
identity: string
}

Defined in: Auth.ts:49