UserSession class
Contains a short-lived token containing information required to interact with the Google Payments Reseller Platform via web endpoints.
- Generate a user session token dynamically for an authenticated user. Do
not share a token directly with a user in an unauthenticated context, such
as SMS or email. - You can regenerate new session tokens repeatedly for the
same
generaterequest if necessary, regardless of whether previous tokens have expired. Multiple sessions will not result in duplicate fulfillments because thesubscription IDguarantees uniqueness. For more integration details, see the [Google Managed Signup](/payments/reseller/subscription/reference/index/User.Signup.Integration/Google.Managed.Signup) documentation.
Constructors
- UserSession({String? expireTime, String? token})
- UserSession.fromJson(Map json_)
Properties
- expireTime ↔ String?
-
The time at which the user session expires.
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
- token ↔ String?
-
The encrypted token of the user session, including the information of the
user's intent and request.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited