Skip to content

@onlyworlds/sdk 4.213.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 08:49
· 52 commits to main since this release

Added

  • completeSignIn reads a press of Cancel on onlyworlds.com as cancelled, a new OwSignInError reason, and hands back the sign-in's resume on the error's new resume property, so a tool can put the person back where they were. Nothing is sent and the pending sign-in ends. Before, the return (error=access_denied with the sign-in's state and no code) was refused as state_mismatch with words saying the page was not reached from this sign-in, and the resume was lost, so each tool had to read error from the address itself. Any other error a return carries is failed, with that error as code and the resume. A cancel with another sign-in's state, or at another page, is state_mismatch as before; on a page whose address came from location, error leaves the address bar with code and state.
  • OwSignInReason gains 'cancelled': a switch over it that TypeScript checks for exhaustiveness needs the new case.