auth

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

Auth registers the browser-facing auth helpers and keeps the callback functions alive for the lifetime of the app.

func New

func New() *Auth

New creates and registers the browser auth helpers.

func (*Auth) Logout

func (a *Auth) Logout(onSuccess func(), onError func(error))

func (*Auth) Refresh

func (a *Auth) Refresh(onSuccess func(string), onError func(error))

func (*Auth) UserInfo

func (a *Auth) UserInfo(onSuccess func(string), onError func(error))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL