AuthorizationCodeResponse class

Response object containing the authorization code and related information from the LinkedIn OAuth flow.

This class stores the authorization code, state parameter, and access token (if available) returned from the LinkedIn authorization server.

Example:

AuthorizationCodeResponse response = AuthorizationCodeResponse(
  code: 'authorization_code_here',
  state: 'unique_state_string',
);

Constructors

AuthorizationCodeResponse({String? code, String? state, LinkedInTokenObject? accessToken})
Creates an AuthorizationCodeResponse with the provided values.

Properties

accessToken LinkedInTokenObject?
Access token if it was provided directly in the authorization response.
getter/setter pair
code String?
Authorization code that can be exchanged for an access token.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
Unique state string used for security purposes to prevent CSRF attacks.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited