Skip to content

Validate firebase issued auth token in JWT format

Notifications You must be signed in to change notification settings

ubbn/firebasejwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase JWT

This Go package provides a convienent method to parse auth JWT issued by Firebase Authentication.

Auth token

An authentication token (auth token) is a computer generated code that helps to verify if user's identity is authentic or not. JWT or Json Web Token is one type of auth token which is used as Bearer token and self-signed. Read more at JWT.io

Usage

Installation guide

go get github.com/ubbn/firebasejwt@v0.1.0

Import it

import github.com/ubbn/firebasejwt

func main() {
    claims, err := firebasejwt.ParseFirebaseJWT("<token issued by firebase auth>")
    fmt.Println(claims["name"])
    fmt.Println(claims["email"])
}

More

Package documentation can be found on pkg.go.dev

About

Validate firebase issued auth token in JWT format

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages