initialize method

  1. @mustCallSuper
Future<bool> initialize({
  1. required Uri baseUrl,
})

Helps to initialize authorization instance with internal requesting client passed as a parameter.

This function is called only if there is no valid nounce available i.e., when isAuthenticated() returns false.

authorize() / validate() functions will not be called before calling initialize() function.

Implementation

@mustCallSuper
Future<bool> initialize({
  required Uri baseUrl,
}) async {
  this.baseUrl = baseUrl;
  return true;
}