#109 begin migration
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Failing after 4s
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Failing after 4s
This commit is contained in:
30
utils/auth.go
Normal file
30
utils/auth.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package utils
|
||||
|
||||
// import (
|
||||
// "context"
|
||||
// "log"
|
||||
// )
|
||||
|
||||
// func VerifyToken(token string) (*auth.Token, error) {
|
||||
// if app == nil {
|
||||
// setup()
|
||||
// }
|
||||
//
|
||||
// client, err := app.Auth(context.Background())
|
||||
// if err != nil {
|
||||
// log.Fatalf("error getting Auth client: %v\n", err)
|
||||
// }
|
||||
// return client.VerifyIDToken(context.Background(), token)
|
||||
// }
|
||||
//
|
||||
// func setup() {
|
||||
// opt := option.WithCredentialsFile("./secrets/firebase.json")
|
||||
//
|
||||
// firebaseApp, err := firebase.NewApp(context.Background(), nil, opt)
|
||||
//
|
||||
// if err != nil {
|
||||
// log.Fatalf("error initializing app: %v", err)
|
||||
// }
|
||||
//
|
||||
// app = firebaseApp
|
||||
// }
|
||||
Reference in New Issue
Block a user