Discussion
This is typically called automatically before making API requests that require a valid authentication token.
func refreshTokenIfNeeded() async throws
This is typically called automatically before making API requests that require a valid authentication token.