Skip to content

Commit

Permalink
fix: jspon -> json (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-stytch authored May 27, 2022
1 parent ae16762 commit e1f14dc
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion stytch/cryptowallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ type CryptoWalletAuthenticateResponse struct {
SessionToken string `json:"session_token,omitempty"`
SessionJWT string `json:"session_jwt,omitempty"`
Session Session `json:"session,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}
2 changes: 1 addition & 1 deletion stytch/magiclink.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type MagicLinksAuthenticateResponse struct {
SessionToken string `json:"session_token,omitempty"`
SessionJWT string `json:"session_jwt,omitempty"`
Session Session `json:"session,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

// MAGIC LINK - EMAIL
Expand Down
2 changes: 1 addition & 1 deletion stytch/otp.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type OTPsAuthenticateResponse struct {
SessionToken string `json:"session_token,omitempty"`
Session Session `json:"session,omitempty"`
SessionJWT string `json:"session_jwt,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

// OTP - SMS
Expand Down
2 changes: 1 addition & 1 deletion stytch/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type SessionsAuthenticateResponse struct {
Session Session `json:"session,omitempty"`
SessionToken string `json:"session_token,omitempty"`
SessionJWT string `json:"session_jwt,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type SessionsRevokeParams struct {
Expand Down
4 changes: 2 additions & 2 deletions stytch/totp.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type TOTPsAuthenticateResponse struct {
SessionToken string `json:"session_token,omitempty"`
SessionJWT string `json:"session_jwt,omitempty"`
Session Session `json:"session,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type TOTPsRecoveryCodesParams struct {
Expand Down Expand Up @@ -66,5 +66,5 @@ type TOTPsRecoverResponse struct {
SessionToken string `json:"session_token,omitempty"`
SessionJWT string `json:"session_jwt,omitempty"`
Session Session `json:"session,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}
14 changes: 7 additions & 7 deletions stytch/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type UsersCreateResponse struct {
EmailID string `json:"email_id,omitempty"`
PhoneID string `json:"phone_id,omitempty"`
Status string `json:"status,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type UsersGetResponse struct {
Expand Down Expand Up @@ -111,7 +111,7 @@ type UsersUpdateResponse struct {
Emails []Email `json:"emails,omitempty"`
PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"`
CryptoWallets []CryptoWallet `json:"crypto_wallets,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type UsersDeleteResponse struct {
Expand All @@ -124,35 +124,35 @@ type UsersDeleteEmailResponse struct {
RequestID string `json:"request_id,omitempty"`
StatusCode int `json:"status_code,omitempty"`
UserID string `json:"user_id,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type UsersDeletePhoneNumberResponse struct {
RequestID string `json:"request_id,omitempty"`
StatusCode int `json:"status_code,omitempty"`
UserID string `json:"user_id,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type UsersDeleteWebAuthnRegistrationResponse struct {
RequestID string `json:"request_id,omitempty"`
StatusCode int `json:"status_code,omitempty"`
UserID string `json:"user_id,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type UsersDeleteTOTPResponse struct {
RequestID string `json:"request_id,omitempty"`
StatusCode int `json:"status_code,omitempty"`
UserID string `json:"user_id,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

type UsersDeleteCryptoWalletResponse struct {
RequestID string `json:"request_id,omitempty"`
StatusCode int `json:"status_code,omitempty"`
UserID string `json:"user_id,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

/* User Search */
Expand Down
2 changes: 1 addition & 1 deletion stytch/webauthn.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ type WebAuthnAuthenticateResponse struct {
SessionToken string `json:"session_token,omitempty"`
SessionJWT string `json:"session_jwt,omitempty"`
Session Session `json:"session,omitempty"`
User User `jspon:"user,omitempty"`
User User `json:"user,omitempty"`
}

0 comments on commit e1f14dc

Please sign in to comment.