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"`
}
Click to show internal directories.
Click to hide internal directories.