auth

package
v0.0.0-...-f30c324 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuthorizationa

func CheckAuthorizationa(c *fiber.Ctx) error

func EmailExist

func EmailExist(c *fiber.Ctx) error

func GithubCallBack

func GithubCallBack(c *fiber.Ctx) error

func GithubLogin

func GithubLogin(c *fiber.Ctx) error

func GoogleCallBack

func GoogleCallBack(c *fiber.Ctx) error

func GoogleLogin

func GoogleLogin(c *fiber.Ctx) error

func LogIn

func LogIn(c *fiber.Ctx) error

func LogOut

func LogOut(c *fiber.Ctx) error

func RefreshToken

func RefreshToken(c *fiber.Ctx) error

func SetLoginCookies

func SetLoginCookies(user_id string, c *fiber.Ctx) (access_token string, refresh_token string, error_message string, err error)

func SetRefreshCookies

func SetRefreshCookies(user_id string, refresh_token_id string, used_time int, c *fiber.Ctx) (access_token string, refresh_token string, error_message string, err error)

func Setup

func Setup(app fiber.Router)

func SignUp

func SignUp(c *fiber.Ctx) error

func UserNameExist

func UserNameExist(c *fiber.Ctx) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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