Releases: workos/workos-go
Releases · workos/workos-go
v2.0.0
Added
Breaking Changes
- Improve SSO and Passwordless naming consistency (#193)
GetProfileOptions
→GetProfileOpts
GetProfileAndTokenOptions
→GetProfileAndTokenOpts
GetAuthorizationURLOptions
→GetAuthorizationURLOpts
passwordless.SendSessionOpts.ID
→passwordless.SendSessionOpts.SessionID
- mfa: Make client functions more consistent (#189)
- All
mfa.Client
methods now utilize provided ctx. - Removed
log.Panic
in favour of returning errors. - All
mfa.Client
methods now utilize the client's HTTPClient. - Added defers for response bodies.
- Utilize
http.Method*
constants instead of strings. - Have
Client.VerifyFactor
call it's receiver, notDefaultClient
.
- All
- MFA improvements (#188)
EnrollResponse
updated toFactor
ChallengeResponse
updated toChallenge
GetEnrollOpts
updated toEnrollFactorOpts
VerifyOpts
updated toVerifyChallengeOpts
- Capitalized
AuthenticationFactor
fields toSMS
andTOTP
- Created type
FactorType
withSMS
andTOTP
enums & updatedFactor
andEnrollFactorOpts
accordingly - Created
TOTPDetails
andSMSDetails
structs - Changed
VerifyResponse
to be named `VerifyChallengeResponse
- Standardise return type of
VerifyChallenge
and coalesce errors into Error (#187)