mirror of
https://github.com/kevin-DL/wails-vue-template.git
synced 2026-01-11 01:44:30 +00:00
34 lines
492 B
Go
34 lines
492 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// App struct
|
|
type Auth struct {
|
|
ctx context.Context
|
|
}
|
|
|
|
// NewApp creates a new App application struct
|
|
func NewAuth() *Auth {
|
|
return &Auth{}
|
|
}
|
|
|
|
// startup is called when the app starts. The context is saved
|
|
// so we can call the runtime methods
|
|
func (a *Auth) startup(ctx context.Context) {
|
|
a.ctx = ctx
|
|
}
|
|
|
|
func (a *Auth) Login() error {
|
|
return nil
|
|
}
|
|
|
|
func (a *Auth) Register() error {
|
|
return nil
|
|
}
|
|
|
|
func (a *Auth) IsLoggedIn() bool {
|
|
return false
|
|
}
|