BloomSupabaseUser class

Represents an authenticated Supabase user profile.

Contains user UUID, email address, JWT access token, refresh token, and user metadata.

Example:

final user = BloomSupabaseUser(
  id: 'usr_123',
  email: 'user@example.com',
  accessToken: 'jwt.token.here',
);

Constructors

BloomSupabaseUser({required String id, required String email, String? accessToken, String? refreshToken, Map<String, dynamic> userMetadata = const {}})
Creates a BloomSupabaseUser.
const
BloomSupabaseUser.fromJson(Map<String, dynamic> json)
Constructs a BloomSupabaseUser from a JSON json map.
factory

Properties

accessToken String?
JWT access token.
final
email String
User email address.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique user UUID string.
final
refreshToken String?
Supabase refresh token.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userMetadata Map<String, dynamic>
Custom user metadata key-value map.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes user profile to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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