auth

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessTokenController

func AccessTokenController(c *fiber.Ctx) error

This endpoint generates a JWT access token based on a refresh token

func LoginController

func LoginController(c *fiber.Ctx) error

This endpoint generates an refresh token if login credentials are right

func RevokeSessionController

func RevokeSessionController(c *fiber.Ctx) error

This endpoint revokes an existing session based on its credentials

func StatusController

func StatusController(c *fiber.Ctx) error

This is an endpoint to test if the JWTs are working

func TwoFactorAuthController

func TwoFactorAuthController(c *fiber.Ctx) error

This controller authorizes the given code and checks if it is valid. If it is, it returns a valid refreshToken

Types

This section is empty.

Jump to

Keyboard shortcuts

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