Skip to content

(DOCSP-12467): Update authentication examples #530

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

Merged
merged 1 commit into from
Oct 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/ios/Examples/Authenticate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Authenticate: XCTestCase {
let expectation = XCTestExpectation(description: "login completes")

// :code-block-start: google
// Fetch Google token via the Google SDK
// Fetch authentication code via the Google SDK
let credentials = Credentials.google(serverAuthCode: "<token>")
app.login(credentials: credentials) { (user, error) in
DispatchQueue.main.sync {
Expand All @@ -29,7 +29,7 @@ class Authenticate: XCTestCase {
let expectation = XCTestExpectation(description: "login completes")

// :code-block-start: apple
// Fetch Apple token via the Apple SDK
// Fetch IDToken via the Apple SDK
let credentials = Credentials.apple(idToken: "<token>")
app.login(credentials: credentials) { (user, error) in
DispatchQueue.main.sync {
Expand All @@ -52,7 +52,7 @@ class Authenticate: XCTestCase {
let expectation = XCTestExpectation(description: "login completes")

// :code-block-start: facebook
// Fetch Facebook token via the Facebook SDK
// Fetch access token via the Facebook SDK
let credentials = Credentials.facebook(accessToken: "<token>")
app.login(credentials: credentials) { (user, error) in
DispatchQueue.main.sync {
Expand Down
6 changes: 3 additions & 3 deletions source/android/authenticate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ to ``app.login()`` or ``app.loginAsync()``.
val app: App = App(AppConfiguration.Builder(appID)
.build())

// fetch facebook token using Facebook SDK
// fetch access token using Facebook SDK

val facebookCredentials: Credentials = Credentials.facebook("<token>")

Expand Down Expand Up @@ -465,7 +465,7 @@ to ``app.login()`` or ``app.loginAsync()``.
val app: App = App(AppConfiguration.Builder(appID)
.build())

// fetch google token using Google SDK
// fetch authentication code using Google SDK

val googleCredentials: Credentials = Credentials.google("<token>")

Expand Down Expand Up @@ -525,7 +525,7 @@ to ``app.login()`` or ``app.loginAsync()``.
val app: App = App(AppConfiguration.Builder(appID)
.build())

// fetch apple token using Apple SDK
// fetch IDToken using Apple SDK

val appleCredentials: Credentials = Credentials.apple("<token>")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Fetch Apple token via the Apple SDK
// Fetch IDToken via the Apple SDK
let credentials = Credentials.apple(idToken: "<token>")
app.login(credentials: credentials) { (user, error) in
DispatchQueue.main.sync {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Fetch Facebook token via the Facebook SDK
// Fetch access token via the Facebook SDK
let credentials = Credentials.facebook(accessToken: "<token>")
app.login(credentials: credentials) { (user, error) in
DispatchQueue.main.sync {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Fetch Google token via the Google SDK
// Fetch authentication code via the Google SDK
let credentials = Credentials.google(serverAuthCode: "<token>")
app.login(credentials: credentials) { (user, error) in
DispatchQueue.main.sync {
Expand Down