12 lines
282 B
Go
12 lines
282 B
Go
package login
|
|
|
|
// App represents a widget which get and validate users authorizations.
|
|
type App struct {
|
|
SecretKey string
|
|
}
|
|
|
|
// New create new app widget for validate authorizations with bot token as secret key.
|
|
func New(botToken string) *App {
|
|
return &App{SecretKey: botToken}
|
|
}
|