Skip to content

k2wanko/firebase-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Auth

GoDoc Go Report Card

Firebase Auth library

Install

$ go get -v -u github.com/k2wanko/firebase-auth

Usage

import(
    ...
    'github.com/k2wanko/firebase-auth'
)

func handle(w http.ResponseWriter, r *http.Request) {
    ctx := appengine.NewContext(r)
    tokStr, err := auth.CreateCustomToken(ctx, "some-uid", map[string]interface{}{
        "premium_account": true,
    })
    if err != nil {
        panic(err)
    }

    tok, err := auth.VerifyIDToken(c, tokStr)
}

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages