Hi @benfosterdev,
Welcome back to the Auth0 Community and sorry for the late reply.
There is no build-in method in the Auth0 NextJs SDK to handle the expiration of sessions, so the approach of catching an error is the right one in this case.
A very useful example can be checked out from this github thread and in order to make the session persists after the expiry of the user’s session you can Configure Silent Authentication.
You can fully check out this Knowledge Article which explains the premises of this particular issue.
I hope this helped.
Thanks,
Remus