tool

package
v0.0.0-...-a94409f Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package tool provides tool functionalities Google Idtoken decoder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDTokenDecoder

type IDTokenDecoder struct {
	// contains filtered or unexported fields
}

IDTokenDecoder responsibles for decoding google's ID token.

func NewIDTokenDecoder

func NewIDTokenDecoder(audience string) *IDTokenDecoder

NewIDTokenDecoder creates an instance of IDTokenDecoder.

func (*IDTokenDecoder) Decode

func (id *IDTokenDecoder) Decode(googleToken string) (*entity.User, *entity.Error)

Decode decodes google token.

Jump to

Keyboard shortcuts

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