Discover Packages
github.com/roccaforte/server
sec
package
Version:
v0.0.0-...-007fb03
Opens a new window with list of versions in this module.
Published: Apr 4, 2017
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
CheckPw compares a bcrypt hash password against a clear text password.
HashPwd returns the bcrypt hash of the supplied password.
If something goes wrong (it shouldn't) this returns empty string along with an error.
IssueJWT creates a new token to be returned as part of
a successful login response
ParseJWT takes a token, validates it (and the algorithm used to sign it)
and will return a slice of claims. If something went wrong and error will be returned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.