Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AMREntry(val method: AMRMethod, timestampInt: Long)

An authentication method reference (AMR) entry.

Link copied to clipboard
@Serializable
enum AMRMethod : Enum<AMRMethod>

Represents an AMR Method.

Link copied to clipboard
data class ClaimsRequestBuilder(var allowExpired: Boolean = false, val jwks: MutableList<JWK> = mutableListOf())

A builder for Auth.getClaims

Link copied to clipboard
data class ClaimsResponse(val claims: JwtPayload, val header: JwtHeader, val signature: ByteArray)

JWT Payload containing claims for Supabase authentication tokens.

Link copied to clipboard
class JWK(val jwk: JsonObject)
Link copied to clipboard
interface JwkCache

Interface responsible to cache JWKs

Link copied to clipboard
data class JwkCacheEntry(val jwks: List<JWK>, val cachedAt: Instant)

Represents a cache entry used in JwkCache

Link copied to clipboard
data class JWTData(val claimsResponse: ClaimsResponse, val rawHeader: String, val rawPayload: String)
Link copied to clipboard
@Serializable
data class JwtHeader(val alg: JwtHeader.Algorithm, val kid: String? = null, val typ: String? = null)
Link copied to clipboard
class JwtPayload(val claims: JsonObject)
Link copied to clipboard
object JWTUtils
Link copied to clipboard

Caches JWKS values for all clients created in the same environment. This is especially useful for shared-memory execution environments such as Vercel's Fluid Compute, AWS Lambda or Supabase's Edge Functions. Regardless of how many clients are created, if they share the same storage key they will use the same JWKS cache, significantly speeding up Auth.getClaims with asymmetric JWTs.