Skip to content

Commit

Permalink
Update handling for 500s
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jan 4, 2024
1 parent 4bfa5ee commit c42140b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c42140b

Please sign in to comment.