Skip to content

Commit

Permalink
Merge pull request #1015 from ItzNotABug/fix-endpoints
Browse files Browse the repository at this point in the history
Fix: Test endpoints
  • Loading branch information
abnegate authored Dec 11, 2024
2 parents abdba83 + c17d12b commit a852aba
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ class AccountsViewModel : ViewModel() {
account.createOAuth2Session(
activity,
OAuthProvider.FACEBOOK,
"appwrite-callback-6070749e6acd4://demo.appwrite.io/auth/oauth2/success",
"appwrite-callback-6070749e6acd4://demo.appwrite.io/auth/oauth2/failure"
"appwrite-callback-6070749e6acd4://cloud.appwrite.io/auth/oauth2/success",
"appwrite-callback-6070749e6acd4://cloud.appwrite.io/auth/oauth2/failure"
)
} catch (e: Exception) {
_error.postValue(Event(e))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import UIKit
import NIO
import Appwrite

let host = "https://demo.appwrite.io/v1"
let host = "https://cloud.appwrite.io/v1"

class ViewController: UIViewController {

Expand Down Expand Up @@ -72,8 +72,8 @@ class ViewController: UIViewController {
do {
let response = try await account.createOAuth2Session(
provider: "facebook",
success: "https://demo.appwrite.io/auth/oauth2/success",
failure: "https://demo.appwrite.io/auth/oauth2/failure"
success: "https://cloud.appwrite.io/auth/oauth2/success",
failure: "https://cloud.appwrite.io/auth/oauth2/failure"
)
self.response = String(describing: response)
} catch {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/android/Tests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ServiceTest {
@Throws(IOException::class)
fun test() {
val client = Client(ApplicationProvider.getApplicationContext())
.setEndpointRealtime("wss://demo.appwrite.io/v1")
.setEndpointRealtime("wss://cloud.appwrite.io/v1")
.setProject("console")
.addHeader("Origin", "http://localhost")
.setSelfSigned(true)
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/apple/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Tests: XCTestCase {

func test() async throws {
let client = Client()
.setEndpointRealtime("ws://demo.appwrite.io/v1")
.setEndpointRealtime("ws://cloud.appwrite.io/v1")
.setProject("console")
.addHeader(key: "Origin", value: "http://localhost")
.setSelfSigned()
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/flutter/tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void main() async {
client.setSelfSigned();
client.setProject('console');
client.setEndPointRealtime(
"wss://demo.appwrite.io/v1"); // change this later to appwrite.io
"wss://cloud.appwrite.io/v1");

Realtime realtime = Realtime(client);
final rtsub = realtime.subscribe(["tests"]);
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

// Realtime setup
client.setProject('console');
client.setEndpointRealtime('ws://demo.appwrite.io/v1');
client.setEndpointRealtime('ws://cloud.appwrite.io/v1');

client.subscribe('tests', event => {
responseRealtime = event.payload.response;
Expand Down

0 comments on commit a852aba

Please sign in to comment.