We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f29eeb7 commit ab2d889Copy full SHA for ab2d889
src/reducers/auth.ts
@@ -168,8 +168,12 @@ export const logout = createAsyncThunk('auth/logout', async () => {
168
Session.unset();
169
});
170
171
-export const resetPassword = createAsyncThunk('auth/resetPassword', async (email: string) => {
172
- await uwFetch<void>(['/auth/password/reset', { method: 'post', data: email }]);
+export const resetPassword = createAsyncThunk('auth/resetPassword', async (email: string, api) => {
+ await uwFetch<void>(['/auth/password/reset', {
173
+ method: 'post',
174
+ data: { email },
175
+ signal: api.signal,
176
+ }]);
177
178
179
const slice = createSlice({
0 commit comments