feat(backend): sso callback url and scope added in infra-config (#3718)

This commit is contained in:
Mir Arif Hasan
2024-03-07 12:37:51 +06:00
committed by GitHub
parent 919579b1da
commit 3611cac241
14 changed files with 394 additions and 144 deletions

View File

@@ -183,6 +183,16 @@ export const validateSMTPUrl = (url: string) => {
return false;
};
/**
* Checks to see if the URL is valid or not
* @param url The URL to validate
* @returns boolean
*/
export const validateUrl = (url: string) => {
const urlRegex = /^(http|https):\/\/[^ "]+$/;
return urlRegex.test(url);
};
/**
* String to JSON parser
* @param {str} str The string to parse