Declared in SPTAuthViewController.h

Overview

A ViewController for managing the login flow inside your app.

Instance Methods

authenticationViewController:didFailToLogin:

An error occured while logging in

- (void)authenticationViewController:(SPTAuthViewController *)authenticationViewController didFailToLogin:(NSError *)error

Parameters

authenticationViewController

The view controller.

error

The error (Note that the session object in the SPTAuth object passed upon initialization is cleared.)

Declared In

SPTAuthViewController.h

authenticationViewController:didLoginWithSession:

The user logged in successfully.

- (void)authenticationViewController:(SPTAuthViewController *)authenticationViewController didLoginWithSession:(SPTSession *)session

Parameters

authenticationViewController

The view controller.

session

The session object with the new credentials. (Note that the session object in the SPTAuth object passed upon initialization is also updated)

Declared In

SPTAuthViewController.h

authenticationViewControllerDidCancelLogin:

User closed the login dialog.

- (void)authenticationViewControllerDidCancelLogin:(SPTAuthViewController *)authenticationViewController

Parameters

authenticationViewController

The view controller.

Declared In

SPTAuthViewController.h