Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielblagy/jwt-users-auth
https://github.com/danielblagy/jwt-users-auth
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielblagy/jwt-users-auth
- Owner: danielblagy
- License: mit
- Created: 2024-07-06T13:12:28.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-06T15:02:32.000Z (6 months ago)
- Last Synced: 2024-10-15T18:44:43.270Z (2 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# jwt-users-auths
## Get package
```
go get github.com/danielblagy/jwt-users-auth
```## Generate password hash
```
import "github.com/danielblagy/jwt-users-auth/hash"func main() {
...passwordHash, err := hash.CreatePasswordHash(userPassword)
if err != nil {
return errors.Wrap(err, "can't create password hash")
}...
}
```Users storage must have user's hashed passwords.
## auth.AuthService
To use the service you must implement auth.BlacklistStore and auth.UsersProvider interfaces.