@heymarco/next-auth
Version:
A complete authentication solution for web applications.
23 lines (22 loc) • 500 B
JavaScript
export const defaultCredentialsConfigShared = {
name: {
minLength: 2,
maxLength: 30,
},
email: {
minLength: 5,
maxLength: 50,
format: /^[a-zA-Z0-9-_.!#$%&'*+/=?^`{|}~]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/,
},
username: {
minLength: 3,
maxLength: 20,
format: /^[a-z][a-z0-9-_]*$/i,
},
password: {
minLength: 5,
maxLength: 30,
hasUppercase: true,
hasLowercase: false,
},
};