Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDK reference for authenticate param #177

Conversation

mickmak-busicat
Copy link
Contributor

@louischan-oursky see if this approach ok or not
i found there is already a private authenticate function for handling a complete AuthenticateOption param, and all places using public authenticate function didnt use the two params that need to be hidden. so if they are not exposing then should be ok to remove from the public authenticate function

Preview:

Screenshot 2024-09-04 at 12 18 22 PM

@louischan-oursky louischan-oursky self-requested a review September 5, 2024 04:17
@louischan-oursky louischan-oursky self-assigned this Sep 5, 2024
@@ -818,10 +818,8 @@ public class Authgear {
/// - xState: Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
public func authenticate(
redirectURI: String,
state: String? = nil,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apply the same change to reauthenticate() promoteAnonymousUser()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed state from reauthenticate() promoteAnonymousUser() and added xState description to them as well

@louischan-oursky
Copy link
Contributor

@mickmak-busicat You need to format the code. The build failed.

@mickmak-busicat mickmak-busicat force-pushed the fix/dev-1693-update-sdk-reference-for-not-used-param branch from 357c0f5 to bbc2c3e Compare September 5, 2024 08:49
@mickmak-busicat
Copy link
Contributor Author

sorry missed that🙏 fixed up

mickmak@24-09-05[16:48] authgear-sdk-ios % make lint
swiftformat -lint .
Running SwiftFormat...
(lint mode - no files will be changed.)
SwiftFormat completed in 0.02s.
0/41 files require formatting.

@louischan-oursky louischan-oursky merged commit db167f3 into authgear:main Sep 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants