|
|
|
|
|
by mcstempel
1347 days ago
|
|
Yes, Firebase also stores refresh tokens client-side [1]. The trade-off that both Firebase and Stytch are managing when we follow this pattern is the following: - You can provide a significantly better developer experience and set-up with this architecture. While there are designs that allow 3rd party APIs like ours to set HTTPOnly cookies by proxying the 3rd party APIs as subdomains, this creates new burdens on the developer for minimal gain considering that a XSS attack vector indicates a severe compromise of the application. - Today, customers that feel strongly about using HTTPOnly session management will opt for a direct integration with our API using one of our back-end client libraries rather than our JS SDK. While we have interest in providing a HTTPOnly solution in the future to interested customers, we’ve decided the default behavior of the existing SDK is better suited for most developers. [1] https://github.com/firebase/firebase-js-sdk/blob/0b3ca78eb97... |
|
I remain shocked that an auth company CEO would push a solution without HttpOnly protection. This would not get by our security audits, and Auth0 and many open source tools I've used do not have the same limitation (Auth0 sets it in the SDK rather than a proxy).
OWASP and NIST are aligned that HttpOnly cookie should be used:
[1] https://cheatsheetseries.owasp.org/cheatsheets/Session_Manag...
[2] https://pages.nist.gov/800-63-3/sp800-63b.html#711-browser-c...