OidcClock

fun interface OidcClock

Interface used to return the current time from a trusted source.

This can be used to customize the behavior of how the current time is calculated, when used on devices that may have skewed or incorrect clocks.

To use a custom OidcClock, you construct an instance of your class implementing this interface, and assign it to the AuthFoundationDefaults.clock property.

Functions

Link copied to clipboard

Returns the current time in seconds since January 1, 1970 UTC, adjusting the system clock to correct for clock skew.