UsersTokensServiceImpl

Constructors

Link copied to clipboard
constructor(repository: UsersTokensRepository)

Functions

Link copied to clipboard
open suspend override 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
open suspend override fun register(userId: UserId, token: <Error class: unknown class>): Result<UserToken>

Registers a new userId - token association.