Skip to content

Commit

Permalink
chore(auth): correct documentation typos
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed Nov 2, 2022
1 parent 01f54d5 commit 79f2c15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/server/auth/method/token/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (

// Server is an implementation of auth.AuthenticationMethodTokenServiceServer
//
// It is used to create static tokens within the backing AuthenticaitonStore.
// It is used to create static tokens within the backing AuthenticationStore.
type Server struct {
logger *zap.Logger
store storage.AuthenticationStore
Expand All @@ -34,7 +34,7 @@ func NewServer(logger *zap.Logger, store storage.AuthenticationStore) *Server {
// CreateToken adapts and delegates the token request to the backing AuthenticationStore.
//
// Implicitly, the Authentication created will be of type auth.Method_TOKEN.
// Name and Description are both stored in Authenticaiton.Metadata.
// Name and Description are both stored in Authentication.Metadata.
// Given the token is created successfully, the generate clientToken string is returned.
// Along with the created Authentication, which includes it's identifier and associated timestamps.
func (s *Server) CreateToken(ctx context.Context, req *auth.CreateTokenRequest) (*auth.CreateTokenResponse, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/auth/memory/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
//
// Authentications are stored in a map by hashedClientToken.
// Access to the map is protected by a mutex, meaning this is implementation
// is sage to use concurrently.
// is safe to use concurrently.
type Store struct {
mu sync.Mutex
auths map[string]*rpcauth.Authentication
Expand Down

0 comments on commit 79f2c15

Please sign in to comment.