Skip to content
Snippets Groups Projects
Commit 748d542f authored by Henrik's avatar Henrik
Browse files

feat: add email validation endpoint

parent 90f07635
No related branches found
No related tags found
No related merge requests found
Pipeline #274580 failed
......@@ -9,6 +9,28 @@ import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class AuthenticationService {
/**
* Validate email
* Check that the given email is valid
* @returns any Email is valid
* @throws ApiError
*/
public static validateEmail({
email,
}: {
email: string,
}): CancelablePromise<Record<string, any>> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/auth/valid-email/{email}',
path: {
'email': email,
},
errors: {
409: `Email already exists`,
},
});
}
/**
* User Signup
* Sign up a new user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment