File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages-exp/auth-exp/src/core/persistence Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -113,17 +113,16 @@ export class PersistenceUserManager {
113
113
) ;
114
114
}
115
115
116
- // Use the first persistence that supports a full read-write roundtrip (._isAvailable()).
117
- let chosenPersistence : PersistenceInternal | null = null ;
116
+ // Use the first persistence that supports a full read-write roundtrip (or fallback to memory).
117
+ let chosenPersistence = _getInstance < PersistenceInternal > (
118
+ inMemoryPersistence
119
+ ) ;
118
120
for ( const persistence of persistenceHierarchy ) {
119
121
if ( await persistence . _isAvailable ( ) ) {
120
122
chosenPersistence = persistence ;
121
123
break ;
122
124
}
123
125
}
124
- chosenPersistence =
125
- chosenPersistence ||
126
- _getInstance < PersistenceInternal > ( inMemoryPersistence ) ;
127
126
128
127
// However, attempt to migrate users stored in other persistences (in the hierarchy order).
129
128
let userToMigrate : UserInternal | null = null ;
You can’t perform that action at this time.
0 commit comments