Fix/login username registration (#2241)
* username update from getting-started when received as query param * Added test for onboarding username update * Now saving username saved in localStorage * remove username field * Removed wordlist * Implement checkoutUsername as api endpoint * Remove unused lib utils not empty Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
1a77e4046e
commit
3341074bb2
4 files changed
+99
-19
No files matched your search
@@ -1,11 +1,13 @@
|
||||
import slugify from "@calcom/lib/slugify";
|
||||
|
||||
export async function checkPremiumUsername(_username: string): Promise<{
|
||||
export type ResponseUsernameApi = {
|
||||
available: boolean;
|
||||
premium: boolean;
|
||||
message?: string;
|
||||
suggestion?: string;
|
||||
}> {
|
||||
};
|
||||
|
||||
export async function checkPremiumUsername(_username: string): Promise<ResponseUsernameApi> {
|
||||
const username = slugify(_username);
|
||||
const response = await fetch("https://cal.com/api/username", {
|
||||
credentials: "include",
|
||||
|
||||
Reference in new issue
Block a user