Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCookie ¶
func DeleteCookie(writer http.ResponseWriter)
DeleteCookie to delete cookie in HTTP response. It used to logout.
func ResponseToken ¶
func ResponseToken(t *oauth2.Token, writer http.ResponseWriter) error
ResponseToken writes a cookie in HTTP response return according to the given OAuth2 token.
Types ¶
Click to show internal directories.
Click to hide internal directories.