2018-02-12 10:46:57 +00:00
|
|
|
package login
|
|
|
|
|
2018-04-12 13:13:56 +00:00
|
|
|
// App represents a widget which get and validate users authorizations.
|
|
|
|
type App struct {
|
|
|
|
SecretKey string
|
2018-02-12 10:46:57 +00:00
|
|
|
}
|
|
|
|
|
2018-04-12 13:13:56 +00:00
|
|
|
// New create new app widget for validate authorizations with bot token as secret key.
|
|
|
|
func New(botToken string) *App {
|
|
|
|
return &App{SecretKey: botToken}
|
2018-02-12 10:46:57 +00:00
|
|
|
}
|