Is there currently a way of making the text that appears in the email field in the Universal Login when the login_hint
value is populated to be read-only and to disappear when a user clicks into the field?
Feedback from users is they do not like having to clear out the text to enter email details.
Could not seem to find this documented in the SDK or via docs
// using "@auth0/nextjs-auth0": "^1.4.2"
import { NextApiRequest, NextApiResponse } from 'next';
import { auth0 } from '@utils/auth0';
export default async function login(req: NextApiRequest, res: NextApiResponse) {
try {
// https://auth0.github.io/nextjs-auth0/modules/handlers_login.html#handlelogin
await auth0.handleLogin(req, res, {
authorizationParams: {
login_hint: 'Enter your email address',
},
});
} catch (error) {
// Error logging
// eslint-disable-next-line no-console
console.error(error);
res.status(error.status || 500).end(error.message);
}
}