Skip to content

Conversation

@aaroncox
Copy link
Member

@aaroncox aaroncox commented Sep 16, 2025

  • Prototype to intercept and use incoming sessions in URLs with restore
  • Refactored sessionKit.restore()
  • Added equalityFn for custom session comparisons (allows different uniqueness constraints in storage/restore/login/etc)
  • Fixed issue with setAsDefault during restore/login

@Struct.field('string') declare walletPlugin: string
@Struct.field('string', {optional: true}) declare data?: string

static fromSession(data: Session | SerializedSession): URLEncodedSession {
Copy link
Contributor

@dafuga dafuga Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need some better error handling for situations when bad data is passed to this method?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The serializer should catch any bad data and report on it.

@aaroncox aaroncox changed the title Prototype to intercept and use incoming sessions in URLs with restore SessionKit restore refactor Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants