auth

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TENANT_CLAIM = Claims("tenantId")
View Source
var USER_ID_CLAIM = Claims("userId")

Functions

func GetToken

func GetToken(tenant, userId, userType string) string

func GetUserIdAndTenant

func GetUserIdAndTenant(ctx context.Context) (string, string)

func VerifyToken

func VerifyToken() grpc_auth.AuthFunc

Types

type Claims

type Claims string

Jump to

Keyboard shortcuts

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