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

Add OAuth support #91

Closed
wants to merge 17 commits into from
Prev Previous commit
Next Next commit
Merge branch 'main'
Conflicts:
	ParseSwift.playground/Pages/4 - User - Continued.xcplaygroundpage/Contents.swift
cbaker6 committed Mar 15, 2021
commit 88135a594935729eeffe86b49d632fb38518dd08
Original file line number Diff line number Diff line change
@@ -53,24 +53,6 @@ struct GameScore: ParseObject {
}
}

/*: Save your first customKey value to your `ParseUser`
Asynchrounously - Performs work on background
queue and returns to designated on designated callbackQueue.
If no callbackQueue is specified it returns to main queue.
*/
User.current?.customKey = "myCustom"
User.current?.score = GameScore(score: 12)
User.current?.targetScore = GameScore(score: 100)
User.current?.save { results in

switch results {
case .success(let updatedUser):
print("Successfully save custom fields of User to ParseServer: \(updatedUser)")
case .failure(let error):
print("Failed to update user: \(error)")
}
}

//: If signed in using OAuth2.0, ask the server to refresh the token
if let currentUser = User.current,
let refreshToken = currentUser.refreshToken {
You are viewing a condensed version of this merge commit. You can view the full changes here.