verify

suspend fun verify(): User

Verifies the current authentication token and retrieves the details of the logged-in user.

Return

The User object of the authenticated user.