Bump next-auth to beta 31

Released next-auth version 5.0.0-beta.31, a routine version increment for the authentication library.