Pkce

object Pkce(source)

PKCE (RFC 7636) with the S256 method.

Functions

Link copied to clipboard
fun challenge(verifier: String): String
Link copied to clipboard
fun randomToken(bytes: Int = 32): String

Opaque URL-safe random value, for state and nonce.

Link copied to clipboard

A 43–128 character verifier from 64 random bytes.