GotrueSessionResponse.fromResponse constructor

GotrueSessionResponse.fromResponse({
  1. required GotrueResponse response,
  2. Session? data,
  3. String? provider,
  4. String? url,
  5. User? user,
})

Implementation

GotrueSessionResponse.fromResponse({
  required GotrueResponse response,
  this.data,
  this.provider,
  this.url,
  User? user,
})  : user = user ?? data?.user,
      super(
        error: response.error,
        statusCode: response.statusCode,
      );