OAuthUserInfoRequest typedef

OAuthUserInfoRequest = FutureOr<Map<String, dynamic>> Function(OAuthTokenResponse token, Client httpClient, Uri endpoint)

Custom userinfo request callback for providers that require non-standard userinfo fetching (e.g., POST instead of GET, custom headers, etc.).

Returns the raw profile data as a map. This is called instead of the default GET request to userInfoEndpoint when provided.

Implementation

typedef OAuthUserInfoRequest =
    FutureOr<Map<String, dynamic>> Function(
      OAuthTokenResponse token,
      http.Client httpClient,
      Uri endpoint,
    );