OneAuth.Credentials (OneAuth v0.1.0)

Copy Markdown View Source

Credential verification for OneAuth.

This module compares supplied credentials against the configured OneAuth account using constant-time comparison to help mitigate timing attacks.

Summary

Functions

Returns whether the supplied credentials match the configured OneAuth account.

Functions

valid?(username, password)

@spec valid?(String.t(), String.t()) :: boolean()

Returns whether the supplied credentials match the configured OneAuth account.

Both the username and password are compared using constant-time comparison.