Skip to content

Commit

Permalink
[iOS/Mac]Renew token service url.
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfd3 committed Jun 24, 2024
1 parent b29e034 commit d028327
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NetworkManager {

static let shared = NetworkManager()
private init() { }
private let baseUrl = "https://test-toolbox.bj2.agoralab.co/v1/token/generate"
private let baseUrl = "https://service.agora.io/toolbox-global/v1/token/generate"

func generateToken(channelName: String, uid: UInt = 0, success: @escaping (String?) -> Void) {
if KeyCenter.Certificate == nil || KeyCenter.Certificate?.isEmpty == true {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class NetworkManager: NSObject {
@objc
static let shared = NetworkManager()
private override init() { }
private let baseUrl = "https://test-toolbox.bj2.agoralab.co/v1/token/generate"
private let baseUrl = "https://service.agora.io/toolbox-global/v1/token/generate"

@objc
func generateToken(channelName: String, uid: UInt = 0, success: @escaping (String?) -> Void) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class NetworkManager: NSObject {
@objc
static let shared = NetworkManager()
private override init() { }
private let baseUrl = "https://test-toolbox.bj2.agoralab.co/v1/token/generate"
private let baseUrl = "https://service.agora.io/toolbox-global/v1/token/generate"

@objc
func generateToken(channelName: String, uid: UInt = 0, success: @escaping (String?) -> Void) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NetworkManager {

static let shared = NetworkManager()
private init() { }
private let baseUrl = "https://test-toolbox.bj2.agoralab.co/v1/token/generate"
private let baseUrl = "https://service.agora.io/toolbox-global/v1/token/generate"

func generateToken(channelName: String, uid: UInt = 0, success: @escaping (String?) -> Void) {
if KeyCenter.Certificate == nil || KeyCenter.Certificate?.isEmpty == true {
Expand Down

0 comments on commit d028327

Please sign in to comment.