providers

package
v0.0.0-...-219ab8e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider

type AuthProvider interface {
	VerifyToken(ctx context.Context, idToken string) (*TokenClaims, error)
}

type FirebaseAuthProvider

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

func NewFirebaseAuthProvider

func NewFirebaseAuthProvider(ctx context.Context, projectID string) (*FirebaseAuthProvider, error)

NewFirebaseAuthProvider creates a new FirebaseAuthProvider

func (*FirebaseAuthProvider) VerifyToken

func (p *FirebaseAuthProvider) VerifyToken(ctx context.Context, idToken string) (*TokenClaims, error)

VerifyToken verifies a Firebase ID token

type TokenClaims

type TokenClaims struct {
	UID string `json:"uid"`
}

Jump to

Keyboard shortcuts

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