validate abstract method

Future<bool> validate()

Called to validate token. (such as in JWT auth)

As of right now, this function is not called outside of this instance. This can change in the future if there is a requirement to validate the nounce from the core client itself. Therefore, be sure to implement this with valid logic for the validation process.

Example 1: JWT authentication token can be validated through an endpoint, you can implement that validation logic inside this.

Example 2: Basic Auth does not require any validation, therefore you can simply return true or if still require some custom logic, you can implement that as well!

Implementation

Future<bool> validate();