DefaultOAuth2StateProvider

object DefaultOAuth2StateProvider : OAuth2StateProvider

Deprecated: Use NonceManager instead

The default state provider that does generate random nonce and don’t keep them

Functions

getState

suspend fun getState(call: ApplicationCall): String

Generates a new state for given call

verifyState

suspend fun verifyState(state: String): Unit

Verifies state and throws exceptions if it’s not valid