Help for if User is Loged in

Hi
The login works. I land on the dashboard. When I go back to the login page, it should recognize that I’m already logged in and redirect me to the dashboard. Unless I log out.
Sorry but I don’t have a plan how to do it have anny a tutorial or an good deskription.
Thanks

This is my ServerAction
grafik

But i have a error
grafik

Redirect step does not work in this manner.
It can be used only if you have set a server action route.

Return a response or set value some value, and on the success event of the server connect, check the response and do a browser goto to your dashboard page.

As suggested by @sid, you can do it on client side. There are few approaches and they involve checking if user data available or logged in then redirect to target page using browser extension.

Is there any example on how to use this? I've been wondering about it but I don't have practical usage for it at the moment.

There might be a post somewhere.
Usage is based on OAuth I think. And also for server connect routes. I don’t really have any immediate example to share unfortunately.