A codec to encode/decode tokens
Validate a result.
Validate a result.
This method is called at the end of the authenticate method to ensure that any domain rules are satisfied. For example, this can be used to verify that a token hasn't expired.
an authentication failure on the left if there is an error, otherwise Unit on the right.
Decode and validate a token.
Decode and validate a token.
a base-64 encoded token, as returned by the serialize method.
Serialize a token.
Serialize a token.
an error message on the left if serialization fails, otherwise a base-64 endoded token on the right.
Token authenticator that uses Scodec encoding and then base-64 encodes the result to a String token.
The result of successful authentication (ex: User, AccessToken)