Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Data ¶
func Data() interface{}
Data returns the structured auth data for the request. It returns nil if the request was made without authentication details, and the API endpoint does not require them.
Expected usage is to immediately cast it to the registered auth data type:
usr, ok := auth.Data().(*user.Data)
if !ok { /* ... */ }
Types ¶
Click to show internal directories.
Click to hide internal directories.