mirror of
https://github.com/go-micro/go-micro.git
synced 2025-07-12 22:41:07 +02:00
Store account credentials
This commit is contained in:
@ -250,8 +250,8 @@ func (s *service) registerAuthAccount() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s.Options().Auth.Init(auth.ClientToken(token))
|
||||
|
||||
s.Options().Auth.Init(auth.ClientToken(token), auth.Credentials(acc.ID, acc.Secret))
|
||||
logger.Infof("Auth [%v] Authenticated as %v", s.Options().Auth, name)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user