Discover Packages
github.com/lemon-mint/goauthpack
package
module
Version:
v0.0.0-...-b38bd29
Opens a new window with list of versions in this module.
Published: Jul 24, 2022
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
goauthpack
Reusable integrated authentication library
Expand ▾
Collapse ▴
Documentation
¶
ErrInvaild :Errors that occur when the session is invalid
InitSigner : Initialize the signer
NewSession : Create New Session String
ReadSession : Verify the session
type Session struct {
SessionID string `json:"sessionid"`
Version int `json:"v"`
Issue int `json:"iat"`
UserName string `json:"sub"`
Data map[string ]string `json:"data"`
}
Session struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.