Updates module paths to v2
ChallengeOpts
→ ChallengeFactorOpts
VerifyChallengeOpts.AuthenticationChallengeID
→ VerifyChallengeOpts.ChallengeID
Full Changelog: https://github.com/workos/workos-go/compare/v2.0.0...v2.0.1
log_streams
Admin Portal intent (https://github.com/workos/workos-go/pull/193)GetProfileOptions
→ GetProfileOpts
GetProfileAndTokenOptions
→ GetProfileAndTokenOpts
GetAuthorizationURLOptions
→ GetAuthorizationURLOpts
passwordless.SendSessionOpts.ID
→ passwordless.SendSessionOpts.SessionID
mfa.Client
methods now utilize provided ctx.log.Panic
in favour of returning errors.mfa.Client
methods now utilize the client's HTTPClient.http.Method*
constants instead of strings.Client.VerifyFactor
call it's receiver, not DefaultClient
.EnrollResponse
updated to Factor
ChallengeResponse
updated to Challenge
GetEnrollOpts
updated to EnrollFactorOpts
VerifyOpts
updated to VerifyChallengeOpts
AuthenticationFactor
fields to SMS
and TOTP
FactorType
with SMS
and TOTP
enums & updated Factor
and EnrollFactorOpts
accordinglyTOTPDetails
and SMSDetails
structsVerifyResponse
to be named `VerifyChallengeResponseVerifyChallenge
and coalesce errors into Error (https://github.com/workos/workos-go/pull/187)GetLoginHandler
to sso.Client
(https://github.com/workos/workos-go/pull/180)CreatedAt
and UpdatedAt
to User
in https://github.com/workos/workos-go/pull/175SuccessURL
to GenerateLinkOpts
by in https://github.com/workos/workos-go/pull/177CreateOrganization
Method (#166 )CreateEvent
, CreateExport
, and GetExport
(https://github.com/workos/workos-go/pull/164)expires_at
non-nullableorganization_id
filter to list directories method (#142)organization
to initiate SSO (#139)directory_id
and idp_id
to directory user, as well as the inactive
state constant (#137)webhook signature validation
method (#123)name
to email in PasswordlessSession
(#127)organization_id
to Directory objectexpires_in
functionality to the createSession()
function used in Magic Linksso.GetProfile
has been renamed to sso.GetProfileAndToken
(#100)
(Profile, error)
to (ProfileAndToken, error)
portal
package to organizations
(#101)
portal.ListOrganizations
→ organizations.ListOrganizations
portal.GetOrganization
→ organizations.GetOrganization
portal.CreateOrganization
→ organizations.CreateOrganization
portal.UpdateOrganization
→ organizations.UpdateOrganization
sso.CreateConnection
and sso.PromoteDraftConnection
have been removed (#102)