odisAuthError
due to incorrect Data Encryption Key (DEK)
#209
-
I've followed the implementation and had it working a few weeks back. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 7 replies
-
For context @therealharpaljadeja: @obernardovieira is using "@celo/identity": "3.2.0". Could you share more context on your implementation please:
authSigner: AuthSigner = {
authenticationMethod: AuthenticationMethod.ENCRYPTION_KEY,
rawKey: DEK_PRIVATE_KEY,
};
|
Beta Was this translation helpful? Give feedback.
-
(In case it helps tracing) According to the ODIS source code, the "odisAuthError" is thrown when there is a 401 error. export enum ErrorMessages {
// ...
ODIS_AUTH_ERROR = 'odisAuthError',
// ...
}
// ...
switch (res.status) {
// ...
case 401:
throw new Error(ErrorMessages.ODIS_AUTH_ERROR)
// ...
} Source: Github > celo-org > monorepo > packages > sdk > identity > src > odis > query.ts |
Beta Was this translation helpful? Give feedback.
-
how do someone fix the 401 error? |
Beta Was this translation helpful? Give feedback.
For context @therealharpaljadeja: @obernardovieira is using "@celo/identity": "3.2.0".
Could you share more context on your implementation please:
authSigner
settings are you using (DEK vs issuer key), e.g.