1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 03:27:27 +00:00

rename master branch to main

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-08-20 03:12:46 +03:00
parent 2e9745a915
commit 48f7b38d15
62 changed files with 216 additions and 211 deletions

View File

@@ -33,7 +33,7 @@ type (
// - SignoutHandler
// - SignoutAllHandler
//
// Example can be found at: https://github.com/kataras/iris/tree/master/_examples/auth/auth/main.go.
// Example can be found at: https://github.com/kataras/iris/tree/main/_examples/auth/auth/main.go.
Auth[T User] struct {
// Holds the configuration passed through the New and MustLoad
// package-level functions. One or more Auth instance can share the
@@ -116,7 +116,7 @@ func Must[T User](s *Auth[T], err error) *Auth[T] {
// MustGenerateConfiguration or MustLoadConfiguration
// or LoadConfiguration or MustLoad package-level functions.
//
// Example can be found at: https://github.com/kataras/iris/tree/master/_examples/auth/auth/main.go.
// Example can be found at: https://github.com/kataras/iris/tree/main/_examples/auth/auth/main.go.
func New[T User](config Configuration) (*Auth[T], error) {
keys, err := config.validate()
if err != nil {

View File

@@ -23,7 +23,7 @@ type VerifiedToken = jwt.VerifiedToken
// ErrorHandler all in once when necessary.
// Set a provider using the AddProvider method of Auth type.
//
// Example can be found at: https://github.com/kataras/iris/tree/master/_examples/auth/auth/user_provider.go.
// Example can be found at: https://github.com/kataras/iris/tree/main/_examples/auth/auth/user_provider.go.
type Provider[T User] interface {
// Signin accepts a username (or email) and a password and should
// return a valid T value or an error describing

View File

@@ -15,7 +15,7 @@ type (
// User is an alias of an empty interface, it's here to declare the typeof T,
// which can be any custom struct type.
//
// Example can be found at: https://github.com/kataras/iris/tree/master/_examples/auth/auth/user.go.
// Example can be found at: https://github.com/kataras/iris/tree/main/_examples/auth/auth/user.go.
User = any
)