We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20f9110 commit e94588aCopy full SHA for e94588a
src/contexts/AuthContext.tsx
@@ -208,9 +208,10 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => {
208
const activateAccount = async (token: string): Promise<boolean> => {
209
try {
210
setLoading(true);
211
- const response = await fetch(`${API_BASE_URL}/users/activate?token=${token}`, {
212
- method: 'GET',
+ const response = await fetch(`${API_BASE_URL}/users/activate`, {
+ method: 'PUT',
213
headers: { 'Content-Type': 'application/json' },
214
+ body: JSON.stringify({ token })
215
});
216
217
if (!response.ok) {
0 commit comments