You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-15 00:15:15 +02:00
checkpoint for api handler tests
This commit is contained in:
@ -295,6 +295,11 @@ func generateToken(ctx context.Context, dbConn *sqlx.DB, tknGen TokenGenerator,
|
||||
return tkn, nil
|
||||
}
|
||||
|
||||
// AuthorizationHeader returns the header authorization value.
|
||||
func (t Token) AuthorizationHeader() string {
|
||||
return "Bearer " + t.AccessToken
|
||||
}
|
||||
|
||||
// mockTokenGenerator is used for testing that Authenticate calls its provided
|
||||
// token generator in a specific way.
|
||||
type MockTokenGenerator struct {
|
||||
|
Reference in New Issue
Block a user