feat: add token to the page for Chrome extension (#2804)

* feat: add token to the page for Chrome extension

* Update token_oauth.go

---------

Co-authored-by: Eric Luo <hsluoyz@qq.com>
This commit is contained in:
SamYSF
2024-03-17 22:01:28 +08:00
committed by GitHub
parent 6037f37b87
commit c8aa35c9c6
6 changed files with 59 additions and 0 deletions

View File

@ -45,6 +45,7 @@ func InitDb() {
}
initWebAuthn()
initToken()
}
func getBuiltInAccountItems() []*AccountItem {
@ -309,6 +310,10 @@ func initWebAuthn() {
gob.Register(webauthn.SessionData{})
}
func initToken() {
gob.Register(&Token{})
}
func initBuiltInUserModel() {
model, err := GetModel("built-in/user-model-built-in")
if err != nil {