Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessonToken ¶
func GetSessonToken( ctx context.Context, client client.Client, w http.ResponseWriter, r *http.Request, tokenManageName string, apiUrl string, handlePath string) (string, error)
Get session token. If the session token is invalid (expired), redirect to /account/update to update the session token.
Arguments:
ctx {context.Context} - context. client {client.Client} - Dapr client. w {http.ResponseWriter} - http writer. r {*http.Request} - http requests. tokenManageName {string} - Dapr app name of token verify. apiUrl {string} - Domain of this API. handlePath {string} - Path of this API.
Returns:
{string} - User id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.