File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,18 @@ export function _generateNewEvent(
50
50
}
51
51
52
52
export function _savePartialEvent ( auth : Auth , event : AuthEvent ) : Promise < void > {
53
- return storage ( ) . _set ( persistenceKey ( auth ) , ( event as object ) as PersistedBlob ) ;
53
+ return storage ( ) . _set (
54
+ persistenceKey ( auth ) ,
55
+ ( event as object ) as PersistedBlob
56
+ ) ;
54
57
}
55
58
56
59
export async function _getAndRemoveEvent (
57
60
auth : Auth
58
61
) : Promise < AuthEvent | null > {
59
- const event = ( await storage ( ) . _get ( persistenceKey ( auth ) ) ) as AuthEvent | null ;
62
+ const event = ( await storage ( ) . _get (
63
+ persistenceKey ( auth )
64
+ ) ) as AuthEvent | null ;
60
65
if ( event ) {
61
66
await storage ( ) . _remove ( persistenceKey ( auth ) ) ;
62
67
}
@@ -129,8 +134,7 @@ function persistenceKey(auth: Auth): string {
129
134
return _persistenceKeyName ( KeyName . AUTH_EVENT , auth . config . apiKey , auth . name ) ;
130
135
}
131
136
132
-
133
- function parseJsonOrNull ( json : string ) : ReturnType < typeof JSON . parse > | null {
137
+ function parseJsonOrNull ( json : string ) : ReturnType < typeof JSON . parse > | null {
134
138
try {
135
139
return JSON . parse ( json ) ;
136
140
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments