module Api::Auth::Auth0Helpers

Direct including types

Defined in:

actions/mixins/api/auth/auth0_helpers.cr

Constant Summary

AUTH0_DOMAIN_URL = "https://#{ENV["AUTH0_DOMAIN"]}"
AUTH0_USER_INFO_URL = "#{AUTH0_DOMAIN_URL}/userinfo"
JWKS_URL = "#{AUTH0_DOMAIN_URL}/.well-known/jwks.json"

Instance Method Summary

Instance Method Detail

def current_user? : AuthUser | Nil #

Returns cached value


[View source]
def current_user__tuple_cached? : Tuple(AuthUser | Nil) #

Checks the passed arguments against the memoized args and runs the method body if it is the very first call or the arguments do not match


[View source]
def current_user__uncached? : AuthUser | Nil #

Returns uncached value


[View source]