jwt

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

目前应该有三处用到 jwt 1. 微信企业接入 2. 系统用户登录 3. 微信用户登录

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUser

func GetUser()

GetUser 系统用户登录 @since 0.0.4

func GetWechatCorp

func GetWechatCorp()

GetWechatCorp 微信企业接入 @since 0.0.4

func GetWechatUser

func GetWechatUser(uid uint64) (string, error)

GetWechatUser 微信用户登录 @since 0.0.4

func Register

func Register()

Register 暂时为了自动编译 @since 0.0.4

Types

type WechatUserClaims

type WechatUserClaims struct {
	UID uint64
	jwt.StandardClaims
}

WechatUserClaims 这里现在是微信认证 @since 0.0.4 为了防止 中文出现的问题 这里只返回id信息

func (WechatUserClaims) Valid

func (c WechatUserClaims) Valid() error

Valid 实现验证接口

Jump to

Keyboard shortcuts

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