grpc

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: GPL-3.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 DefaultTokenValidator

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

DefaultTokenValidator struct

func NewDefaultTokenValidator

func NewDefaultTokenValidator(
	tokenSource *oauth.TokenSource,
	authClient *pbauth.AuthClient,
) (*DefaultTokenValidator, error)

NewDefaultTokenValidator creates a new default token validator

func (*DefaultTokenValidator) IsTokenValid

func (d *DefaultTokenValidator) IsTokenValid(
	tokenString string,
	isRefreshToken bool,
) bool

IsTokenValid checks if the token is valid

type TokenValidator

type TokenValidator interface {
	IsTokenValid(tokenString string, isRefreshToken bool) bool
}

TokenValidator interface

Jump to

Keyboard shortcuts

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