Class decorator: authenticate every request, declaratively.
@Auth() registers the authentication service provider (so constructor ({ auth }) works
anywhere) and the kernel middleware that verifies the credentials carried by each request. Nothing
is verified until you give it a signing strategy: a secret for HMAC, or a publicKey / jwksUri
for asymmetric tokens.
The declarative half of the pair; authBlueprint handed to defineStoneApp is the imperative one.
Class decorator: authenticate every request, declaratively.
@Auth()registers the authentication service provider (soconstructor ({ auth })works anywhere) and the kernel middleware that verifies the credentials carried by each request. Nothing is verified until you give it a signing strategy: asecretfor HMAC, or apublicKey/jwksUrifor asymmetric tokens.The declarative half of the pair;
authBlueprinthanded todefineStoneAppis the imperative one.