AdminBetterAuth class abstract

Annotations
  • @RestApi(callAdapter: BetterAuthCallAdapter)

Constructors

AdminBetterAuth.new(Dio dio, {String? baseUrl, ParseErrorLogger? errorLogger})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

banUser({required String userId, String banReason = "", String? banExpiresIn}) Future<Result<UserResponse>>
createUser({required String name, required String email, required String password, String? role, String? data}) Future<Result<UserResponse>>
hasPermission({required Map<String, dynamic> permissions}) Future<Result<CheckPermissionResponse>>
impersonateUser({required String userId}) Future<Result<SessionResponse>>
listUsers() Future<Result<UserResponse>>
listUserSessions({required String userId}) Future<Result<UserResponse>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeUser({required String userId}) Future<Result<SuccessResponse>>
removeUserSessions({required Map<String, dynamic> body}) Future<Result<SuccessResponse>>
setRole({required String userId, required String role}) Future<Result<UserResponse>>
setUserPassword({required String newPassword, required String userId}) Future<Result<StatusResponse>>
stopImpersonating({required String userId}) Future<Result<SuccessResponse>>
toString() String
A string representation of this object.
inherited
unBanUser({required String userId}) Future<Result<UserResponse>>

Operators

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