The company posted a non-GAAP net loss per share of 1 cent, vs a loss of 4 cents a share a year ago.
Revenue rose to $167 million, vs. $115.5 million a year earlier.
Analysts had been expecting the company to post a loss of 5 cents a share, on sales of $156.6 million, based on a FactSet survey of 18 analysts.
For the upcoming quarter, the company forecast revenue of $171 million to $173 million and a non-GAAP net loss per share of 24 cents to 23 cents.
For the full year fiscal 2021, Okta expects total revenue of $770 million to $780 million and a non-GAAP net loss per share of 42 cents to 37 cents.
Shares of Okta rose $4, or 3.1%, to $133.05 in after-hours action.
“We’re still in the early days of a massive addressable market to modernize identity for the workforce and customers and we are in the leading position to capitalize on the opportunity for many years to come,” Todd McKinnon, chief executive officer and co-founder of Okta, said in a statement.
Elsewhere, cloud stocks fell Thursday amid broad declines in U.S. markets.
Among notable small- and medium-cap stocks in the cloud sector, three rose while 16 fell.