I've been building an interface using Nebular's NbAuthModule and NbDummyAuthStrategy. I have found that when using NbPasswordAuthStrategy you can easily set a redirect on successful login, however when using NbDummyAuthStrategy it doesn't accept a redirect on a "successful" login. Nothing in the nebular documentation appears helpful in this regard.
Is there any way to redirect after login when using the NbDummyAuthStrategy?
NbDummyAuthStrategy.setup({
name: "dummy",
alwaysFail: false,
token: {
class: NbAuthSimpleToken,
},
\\ below doesn't work
login: {
redirect: {
success: "/pages/dashboard",
failure: "null, // stay on the same page
},
}
}),
Try using the NbPasswordAuthStrategy or simply add the
in the dummy-strategy-options.d.ts file