attestation

package module
v0.0.0-...-eab67bb Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 6 Imported by: 0

README

attestation

A SafetyNet Attestation API response parser for golang.

Install

go get github.com/okzk/attestation

How to use

package main

import (
	"fmt"
	"github.com/okzk/attestation"
)

func main() {
	jws := "....."
	claims, err := attestation.Parse(jws)
	if err != nil {
		panic(err)
	}
	fmt.Println(claims)
}

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(jws string) (jwt.MapClaims, error)

Parse validates SafetyNet Attestation API response JWS and returns claims.

Types

This section is empty.

Jump to

Keyboard shortcuts

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