mysterious-processor-51766
04/09/2023, 9:31 PMcreateNativeLoginFlow
for all platforms?
—
Disclaimer: I’m aware of the potential security implications like CSRF and XSS.
CSRF: We should not / would not store _*the `session_token`*_ returned from themethod in the cookies but in the `localStorage`/`indexedDB` which would not be automatically attached to all requests to our API and require JavaScript executed on OUR domain to access the session token, which theoretically could be exploited using Cross-site-scripting.updateLoginFlow
XSS: By default any user input would be handled by the Flutter framework which (when not doing any custom interaction with HTML/JS yourself) is escaped and protected by default.Is the above evaluation of the security implications (especially regarding the CSRF) correct? Firebase Auth, for example, also does not store their refresh and ID tokens in the cookies and thus also do not have any CSRF protections, which makes the interaction with their APIs quite easy as only a single type of token is ever created and has to be handled across all platforms. Thanks for any tips and tricks 🙂
mysterious-processor-51766
04/11/2023, 7:29 AMfast-lunch-54279
ancient-judge-84558
04/12/2023, 1:35 PM