supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54 stars 13 forks source link

feat: session claim validator type #222

Closed porcellus closed 1 year ago

porcellus commented 1 year ago

Summary of change

Convert SessionClaimValidator into a type from abstract class to enable adding validators as by destructuring built-in validators (and overriding parts if necessary).

Related issues

Test Plan

Added a type test into with-typescript. No behaviour change.

Documentation changes

We do not mention this in our docs

Checklist for important updates

github-actions[bot] commented 1 year ago

size-limit report 📦

Path Size
lib/build/bundleEntry.js 19.08 KB (-0.25% 🔽)