jwt

package
v0.0.0-...-e5b43e4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WeChat

type WeChat struct {
}

WeChat jwt

func (*WeChat) Parse

func (w *WeChat) Parse(token *jwt.Token) (interface{}, error)

Parse ...

func (*WeChat) Token

func (w *WeChat) Token(openid, appid, nickname string) (tokenString string, err error)

Token 生成 Token 传入的 uid, ouid 请加密 iss

func (*WeChat) Verify

func (w *WeChat) Verify(tokenString string) (openid, appid, nickname string, err error)

Verify 验证 token 有效性 (加密后的user_id)

Jump to

Keyboard shortcuts

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