AuthData

data class AuthData(val user: AuthUser, val token: AuthToken)(source)

Stores all information that should be used to authorize access. Be aware that token and user may change independently when a refresh is needed, and as such there should be no strong pairing between the two.

Any local set/get key should use user.id.toString(), as token.accessToken (even hashed) is unsecure, and will rotate.

Constructors

Link copied to clipboard
constructor(user: AuthUser, token: AuthToken)

Properties

Link copied to clipboard
Link copied to clipboard