access_token v2.0.0 AccessToken View Source

Access token generator.

Link to this section Summary

Functions

Generates a random access token with URL and filename safe alphabet

Link to this section Functions

Link to this function generate(length \\ 64) View Source
generate(integer()) :: String.t()

Generates a random access token with URL and filename safe alphabet.

iex> AccessToken.generate()
"MPjl2Y5AkvtP30rFb3ABRwkYNWsuRhJXkRQLhjaweqsC7H4fg8H2UmY5RpOkbO05"
iex> AccessToken.generate(20)
"XpT7OoqccDKg8Oa14B5w"