Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UniversalMytoken ¶
type UniversalMytoken struct { JWT string OriginalToken string OriginalTokenType model.ResponseType }
UniversalMytoken is a type used for Mytokens passed in http requests; these can be normal Mytoken or a short token. This type will always provide a jwt of the (long) Mytoken
func Parse ¶
func Parse(token string) (UniversalMytoken, error)
Parse parses a mytoken string (that can be a long or short mytoken) into an UniversalMytoken holding the JWT
func (*UniversalMytoken) UnmarshalJSON ¶
func (t *UniversalMytoken) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON implements the json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.