[#348] Remove prefix to errors in authmate

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2022-02-14 18:07:50 +03:00 committed by Kirillov Denis
parent f04815c32f
commit ee6c582ec8

View file

@ -242,7 +242,7 @@ func (a *Agent) IssueSecret(ctx context.Context, w io.Writer, options *IssueSecr
gatesData, err := createTokens(options, lifetime, cid)
if err != nil {
return fmt.Errorf("failed to build bearer token: %w", err)
return err
}
box, secrets, err := accessbox.PackTokens(gatesData)