1. HelpDesk
  2. Troubleshooting Errors

Why did I get an 'REQUEST_NOT_AUTHORIZED_FOR_ADMIN_AUTH' error?

An error in the console that reads <REQUEST_NOT_AUTHORIZED_FOR_ADMIN_AUTH> would indicate mismatched API keys.

{ 
code: 'SERVICE_ERROR',
data: [{
data: {},
error_code: 'REQUEST_NOT_AUTHORIZED_FOR_ADMIN_AUTH',
message: 'You are not authorized to access the given resource: issuer (did:ethr). Please check your parameters to make sure the resource you want to access is intended.',
status: 'failed'
}
]}


Steps to resolve:

  1. Confirm that the backend Magic instance is being created with a secret key (sk_live) that corresponds to the publishable key (pk_live) used to initiate the client side Magic instance. These keys are viewable in your Magic dashboard.