class HqTrivia::Auth

Overview

Manages bearer tokens for various countries

Defined in:

hqtrivia/auth.cr

Instance Method Summary

Instance Method Detail

def headers(country) #

Given a country it returns the required headers


[View source]
def token(country : String) #

Given a country it returns the bearer token from the ENV


[View source]