Skip to content

AuthorizationEvent

public structAuthorizationEvent

Authorization token refresh result delivered to BGGeo.onAuthorization.

The SDK fires this event after each token refresh attempt triggered by AuthorizationConfig.refreshUrl. Use it to update your app's local credential store, handle refresh failures, or react to expired sessions.


Members

error

public let error: NSError?

Error message when success is false; null otherwise.

isSuccess

public var isSuccess: Bool

true when the token refresh request returned a 2xx status code.

response

public let response: [String: Any]

Decoded JSON body returned by the refresh server when success is true; null otherwise.

status

public let status: Int

HTTP status code returned by AuthorizationConfig.refreshUrl, or 0 if the request failed before reaching the server.