Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type Authenticator ¶
type Authenticator interface { New(config AuthConfig) error CloseDBConnection() VerifyTokenString(tokenString string, dbModel interface{}) (bool, error) // contains filtered or unexported methods }
type LaravelAuthenticator ¶
type LaravelAuthenticator struct { Token *jwt.Token Config AuthConfig // contains filtered or unexported fields }
func (*LaravelAuthenticator) CloseDBConnection ¶
func (g *LaravelAuthenticator) CloseDBConnection()
func (*LaravelAuthenticator) New ¶
func (g *LaravelAuthenticator) New(config AuthConfig) error
func (*LaravelAuthenticator) VerifyTokenString ¶
func (g *LaravelAuthenticator) VerifyTokenString(tokenString string, dbModel interface{}) (bool, error)
VerifyTokenString verifies token string and puts Token object into structure
Click to show internal directories.
Click to hide internal directories.