YRTAccount
|
protocol YRTAccount : NSObjectProtocol |
Summary
Instance methods
|
func uid() -> String This method may be called on any thread |
|
func requestToken(withTokenListener tokenListener: YRTTokenDelegate) |
|
func invalidateToken(_ token: String) |
|
func httpAuth(withToken token: String) -> String? |
Instance methods
uid()
|
func uid() -> String |
Get the user's UID
This method may be called on any thread. Its implementation must be thread-safe.
requestToken(withTokenListener:)
|
func requestToken(withTokenListener tokenListener: YRTTokenDelegate) |
Makes a token request for the provider. This method may be called often (per each request). For best perfomance your implementation should cache the token. See YRTTokenDelegate for additional information.
This method may be called on any thread. Its implementation must be thread-safe.
invalidateToken(_:)
|
func invalidateToken(_ token: String) |
Invalidates the OAuth token for an active account. The next token request occurs on a new OAuth token request from XToken.
This method may be called on any thread. Its implementation must be thread-safe.
httpAuth(withToken:)
|
func httpAuth(withToken token: String) -> String? |
Creates the HTTP authorization header for requests. return null if default authorization needed ('OAuth token').
This method may be called on any thread. Its implementation must be thread-safe.