APIacAuthBearer.Cache behaviour (apiac_auth_bearer v2.0.0) View Source

APIacAuthBearer.Cache behaviour specification

Link to this section Summary

Callbacks

Returns the bearer's attributes stored in the cache

Initializes the cache options

Stores the bearer's attributes in the cache

Link to this section Types

Link to this section Callbacks

Specs

Returns the bearer's attributes stored in the cache

Returns nil if the bearer was not found in the cache

Specs

init_opts(opts()) :: opts()

Initializes the cache options

This function is called at compile-time when APIacAuthBearer is called in a plug pipeline. Its result will be given to put/3 and get/2

Link to this callback

put(bearer, response_attributes, opts)

View Source

Specs

Stores the bearer's attributes in the cache