fix: create common resolver test suite

This commit is contained in:
Lakhan Samani
2021-12-23 14:17:44 +05:30
parent beae4502d4
commit 6e9370458b
10 changed files with 86 additions and 264 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/authorizerdev/authorizer/server/utils"
)
func Token(ctx context.Context, roles []string) (*model.AuthResponse, error) {
func Session(ctx context.Context, roles []string) (*model.AuthResponse, error) {
var res *model.AuthResponse
gc, err := utils.GinContextFromContext(ctx)