@route(bp, '/')
def whoami():
 return current_user._get_current_object()

@ route ( bp , '/' ) def whoami ( ) : return current_user . _get_current_object ( )
returns the user instance of the currently authenticated user .