auth

package
v0.0.0-...-9cd51db Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToken

func NewToken(appID string, secret string) (string, error)

NewToken generates a new token.

func VerifyAppIDSecret

func VerifyAppIDSecret(appID string, secret string) error

VerifyAppIDSecret verifies the app id and secret.

func VerifyAppToken

func VerifyAppToken(tokenString string) (string, error)

VerifyAppToken verifies the app token and gets the AppID.

Types

type TokenRequest

type TokenRequest struct {
	AppID     string `json:"app_id"`
	AppSecret string `json:"app_secret"`
}

TokenRequest is the structure for token request.

Jump to

Keyboard shortcuts

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