Authentication
TapTalk.io Omnichannel SDK provides some essential methods to handle user authentication.
You can authenticate the user that is currently logged in before calling
presentTapTalkLiveView
or pushTapTalkLiveView
. To do this, provide the user's full name and email by calling authenticateUser
from the TapTalkLive class after initializing the SDK.[[TapTalkLive sharedInstance] authenticateUserWithFullName:NAME email:EMAIL success:^(NSString *message) {
// Successfully authenticated user
} failure:^(NSError *error) {
}];
Parameters
NAME
: (NSString *) current user's full name
EMAIL
: (NSString *) current user's email addressAfter successfully authenticated, user will no longer be required to fill name and email to create a case.
You can also authenticate using an existing auth ticket with
requestAccessTokenWithAuthTicket
method from the TapTalkLive class after initializing the SDK.[[TapTalkLive sharedInstance] requestAccessTokenWithAuthTicket:AUTH_TICKET success:^(NSString *message) {
// Successfully authenticated user
} failure:^(NSError *error) {
}];
Parameters
AUTH_TICKET
: (NSString *) existing auth ticket retrieved from the serverCall this method when you need to logout and clear all local cached data from Omnichannel SDK.
[[TapTalkLive sharedInstance] clearAllTapLiveData];
Last modified 4mo ago