auth

package
v0.0.0-...-cfcff58 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(jwtCustomService service.JWTCustomService) http.HandlerFunc

@Summary Авторизация @Security Api-Token @Tags Auth @Description Авторизация @Produce json @Param authQuery body request.Credentials true "Модель авторизации" @Success 200 @Failure 400 "Ошибки валидации входных параметров" @Failure 500 "Неизвестная внутренняя ошибка" @Router /api/v1/auth [post]

func RefreshTokens

func RefreshTokens(jwtCustomService service.JWTCustomService) http.HandlerFunc

@Summary Обновление токенов @Security jwt @Tags Auth @Description Обновление токенов @Produce json @Param authQuery body request.JwtCustom true "Модель токенов" @Success 200 {object} response.JwtCustom @Failure 400 "Ошибки валидации входных параметров" @Failure 500 "Неизвестная внутренняя ошибка" @Router /api/v1/refresh [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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