mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 05:21:15 +00:00
fix(native): Prettier on the native client files, rate-limit e2e requests in sequence
Formats the files the client formatting gate listed, and NATIVE-E2E-005 sends its twenty exchange attempts one after another: all at once they reset the test server's connections.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { NativeExchangeRequest, NativeHandoffResponse } from '@trek/shared'
|
||||
import { apiClient } from './client'
|
||||
import type { NativeExchangeRequest, NativeHandoffResponse } from '@trek/shared';
|
||||
import { apiClient } from './client';
|
||||
|
||||
/** The two halves of the sign-in hand-off between system browser and app. */
|
||||
export const nativeAuthApi = {
|
||||
@@ -9,4 +9,4 @@ export const nativeAuthApi = {
|
||||
/** App side: redeem the code with the verifier; the response sets the session cookie. */
|
||||
exchange: (body: NativeExchangeRequest): Promise<void> =>
|
||||
apiClient.post('/auth/native/exchange', body).then(() => undefined),
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user