-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5b21ba
commit d915704
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,56 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
|
||
- If you were using `ThirdPartyPasswordless`, you should now init `ThirdParty` and `Passwordless` recipes separately. The config for the individual recipes are mostly the same, except the syntax may be different. Check our recipe guides for [ThirdParty](https://supertokens.com/docs/thirdparty/introduction) and [Passwordless](https://supertokens.com/docs/passwordless/introduction) for more information. | ||
|
||
- The way to get user information has changed: | ||
- If you are using `thirdpartyemailpassword.GetUsersByEmail`: | ||
Before: | ||
```go | ||
userInfo, err := thirdpartyemailpassword.GetUsersByEmail("public", "[email protected]") | ||
``` | ||
|
||
After: | ||
```go | ||
thirdPartyUserInfo, err := thirdparty.GetUsersByEmail("public", "[email protected]") | ||
if err != nil { | ||
// TODO: Handle error | ||
} | ||
emailPasswordUserInfo, err := emailpassword.GetUserByEmail("public", "[email protected]") | ||
if err != nil { | ||
// TODO: Handle error | ||
} | ||
if emailPasswordUserInfo != nil { | ||
fmt.Println(emailPasswordUserInfo) | ||
} | ||
if len(thirdPartyUserInfo) > 0 { | ||
fmt.Println(thirdPartyUserInfo) | ||
} | ||
``` | ||
|
||
- If you are using `thirdpartyemailpassword.GetUserById`: | ||
Before: | ||
```go | ||
userInfo, err := thirdpartyemailpassword.GetUserById(userID) | ||
``` | ||
|
||
After: | ||
```go | ||
userInfo, err := thirdparty.GetUserByID(userID) | ||
if err != nil { | ||
// TODO: Handle error | ||
} | ||
if userInfo == nil { | ||
emailPasswordUserInfo, err := emailpassword.GetUserByID(userID) | ||
if err != nil { | ||
// TODO: Handle error | ||
} | ||
fmt.Println(emailPasswordUserInfo) | ||
} else { | ||
fmt.Println(userInfo) | ||
} | ||
``` | ||
|
||
## [0.19.0] - 2024-05-01 | ||
|
||
- Added `OlderCookieDomain` config option in the session recipe. This will allow users to clear cookies from the older domain when the `CookieDomain` is changed. | ||
|