Skip to content

Commit b7f929a

Browse files
committed
add stub for auth
1 parent 675cb3f commit b7f929a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

api/client/auth.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package client
2+
3+
import (
4+
"context"
5+
)
6+
7+
// HeaderToken is header base authorization with pre-shared token.
8+
type HeaderToken string
9+
10+
func (ta HeaderToken) HeaderAuth(_ context.Context, _ string) (HeaderAuth, error) {
11+
return HeaderAuth{
12+
APIKey: string(ta),
13+
}, nil
14+
}

0 commit comments

Comments
 (0)