UsersTokensService

A service to manage UserTokens.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun invalidate(userId: UserId, token: <Error class: unknown class>): Result<Unit>

Invalidates the given token for the given userId, i.e., removes the userId - token association.

Link copied to clipboard
abstract suspend fun register(userId: UserId, token: <Error class: unknown class>): Result<UserToken>

Registers a new userId - token association.