diff --git a/packages/api/src/agent.ts b/packages/api/src/agent.ts index 06cce7f5996..e8b65b651c1 100644 --- a/packages/api/src/agent.ts +++ b/packages/api/src/agent.ts @@ -190,6 +190,8 @@ export class AtpAgent { */ if (['InvalidDID'].includes(e.error)) { this._persistSession?.('expired', undefined) + } else if (['InternalServerError'].includes(e.error)) { + this._persistSession?.('network-error', undefined) } } else { this._persistSession?.('network-error', undefined)