File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ export function createAuthModule(
115115 ) {
116116 try {
117117 window . localStorage . setItem ( "base44_access_token" , token ) ;
118+ // Set "token" that is set by the built-in SDK of platform version 2
119+ window . localStorage . setItem ( "token" , token ) ;
118120 } catch ( e ) {
119121 console . error ( "Failed to save token to localStorage:" , e ) ;
120122 }
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ export function saveAccessToken(
9393
9494 try {
9595 window . localStorage . setItem ( storageKey , token ) ;
96+ // Set "token" that is set by the built-in SDK of platform version 2
97+ window . localStorage . setItem ( "token" , token ) ;
9698 return true ;
9799 } catch ( e ) {
98100 console . error ( "Error saving token to localStorage:" , e ) ;
You can’t perform that action at this time.
0 commit comments