Judges a presented GNAP token completely: presentation(), then the token
verified in its own format against the audience and the access the request
needs.
Parameters
req: any
the request presenting the token
Optionaloptions: AuthenticateOptions
{ audience, requiredAccess, base }
Returns Promise<any>
{ ok, record, model, method }, or a refusal carrying the
WWW-Authenticate reason
Judges a presented GNAP token completely:
presentation(), then the token verified in its own format against the audience and the access the request needs.