8-jwt

command
v0.0.0-...-43e599f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 6 Imported by: 0

README

Auth:

  • login
  • check login
  • valid -> fetch data dari db -> generate token -> return token
  • invalid -> return 401

Request secret/admin/user area

  • request with jwt
  • validate jwt -> data email, data user dll - context

sample request

curl -H 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJjbGFzcyI6ImJjYyJ9.3qJKWhNYdwCLFCib8R0ey4BRQur6WBUkceeTcLUxRC0' localhost:5000/secret/hello

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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