-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix member session for magic links (#193)
* Run codegen * Revert "Run codegen" This reverts commit 53d5195. * regenerate * bump minor version * remove patch number
- Loading branch information
1 parent
15b392c
commit d9b35cd
Showing
27 changed files
with
175 additions
and
107 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
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
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
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
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
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
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
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,13 +30,13 @@ func NewOAuthClient(c stytch.Client) *OAuthClient { | |
} | ||
} | ||
|
||
// Authenticate a Member given a `token`. This endpoint verifies that the member completed the OAuth flow | ||
// by verifying that the token is valid and hasn't expired. Provide the `session_duration_minutes` | ||
// parameter to set the lifetime of the session. If the `session_duration_minutes` parameter is not | ||
// specified, a Stytch session will be created with a 60 minute duration. | ||
// Authenticate a given a `token`. This endpoint verifies that the member completed the flow by verifying | ||
// that the token is valid and hasn't expired. Provide the `session_duration_minutes` parameter to set the | ||
// lifetime of the session. If the `session_duration_minutes` parameter is not specified, a Stytch session | ||
// will be created with a 60 minute duration. | ||
// | ||
// If the Member is required to complete MFA to log in to the Organization, the returned value of | ||
// `member_authenticated` will be `false`, and an `intermediate_session_token` will be returned. | ||
// If the Member is required to complete MFA to log in to the, the returned value of `member_authenticated` | ||
// will be `false`, and an `intermediate_session_token` will be returned. | ||
// The `intermediate_session_token` can be passed into the | ||
// [OTP SMS Authenticate endpoint](https://stytch.com/docs/b2b/api/authenticate-otp-sms) to complete the | ||
// MFA step and acquire a full member session. | ||
|
@@ -49,6 +49,12 @@ func NewOAuthClient(c stytch.Client) *OAuthClient { | |
// If a valid `session_token` or `session_jwt` is passed in, the Member will not be required to complete an | ||
// MFA step. | ||
// | ||
// If the Member is logging in via an OAuth provider that does not fully verify the email, the returned | ||
// value of `member_authenticated` will be `false`, and an `intermediate_session_token` will be returned. | ||
// The `primary_required` field details the authentication flow the Member must perform in order to | ||
// [complete a step-up authentication](https://stytch.com/docs/b2b/guides/oauth/auth-flows) into the | ||
// organization. The `intermediate_session_token` must be passed into that authentication flow. | ||
// | ||
// We’re actively accepting requests for new OAuth providers! Please [email us](mailto:[email protected]) | ||
// or [post in our community](https://stytch.com/docs/b2b/resources) if you are looking for an OAuth | ||
// provider that is not currently supported. | ||
|
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
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
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
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
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
Oops, something went wrong.