tokens

package
v0.0.0-...-b7287e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TokenSignSecret = "50TIN-APP-TOKEN-SIGN-SECRET"

TokenSignSecret the sign secret using the HMAC algorithm for now

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

Token is the composite of access-token and refresh-token

func GenerateTokenPair

func GenerateTokenPair(auth *models.Auth) (*Token, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL