question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to customize the Authentication toast that shows at the top with error messages?

See original GitHub issue

** Which Category is your question related to? **

Authenticator Component.

** What AWS Services are you utilizing? **

Cognito.

** Provide additional details e.g. code snippets **

I can customize all the Authentication components (SignUp, ForgotPassword, etc…), except the Toast one that shows up at the top of the screen with error messages. I’d like to get rid of it and instead show my own component.

I tried using a theme to hide the NavBar that seems the Toast to be built with as follows, but doesn’t seem to work:

const awsTheme = {
  navBar: { display: "none" },
};
....
<Authenticator theme={aswTheme} errorMessage={MyErrorHandler} ... />

How can I achieve this? I can’t find anything in the documentation.

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
cnbrkkayacommented, Jun 10, 2020

Hi, Lets say we dont want to use that toast component. Instead i want to use something like react-notification-alert or any other thing. How can i achieve this ? Thanks.

3reactions
BardiaNcommented, Mar 10, 2019

You need to customize the “toast” class in your theme: { …, toast: {backgroundColor: ‘red’}, … }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using React-Toastify to style your toast messages
Let us spin up our React app and see how we can use the React-Toastify to style our toast messages. Remember, toast messages...
Read more >
Updating Employee Information - Toast Central
Select the pencil icon from an employee's line on the Employees page. Select the Basic tab. If you are a Toast Payroll user...
Read more >
Toasts
A toast appears in reaction to user action: creating, editing, deleting. For example, a user edits an opportunity via a modal and saves...
Read more >
Toast Notifications - Salesforce Lightning Component Library
Toast Notifications ; variant, String. The theme and icon displayed in the toast. Valid values are: info —(Default) A gray box with an...
Read more >
node.js - How To Make Toast Throw Out Custom Errors
I am using MongoDB and I installed react toastify to show errors from my ... I can output toast messages but not the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found