diff --git a/internal/sbi/consumer/nf_accesstoken.go b/internal/sbi/consumer/nf_accesstoken.go index 76c31b3c..2c03b9f0 100644 --- a/internal/sbi/consumer/nf_accesstoken.go +++ b/internal/sbi/consumer/nf_accesstoken.go @@ -13,8 +13,8 @@ import ( func GetTokenCtx(scope, targetNF string) (context.Context, *models.ProblemDetails, error) { if amf_context.GetSelf().OAuth2Required { logger.ConsumerLog.Debugln("GetToekenCtx") - udrSelf := amf_context.GetSelf() - tok, pd, err := oauth.SendAccTokenReq(udrSelf.NfId, models.NfType_AMF, scope, targetNF, udrSelf.NrfUri) + amfSelf := amf_context.GetSelf() + tok, pd, err := oauth.SendAccTokenReq(amfSelf.NfId, models.NfType_AMF, scope, targetNF, amfSelf.NrfUri) if err != nil { return nil, pd, err }