createCookieAuthenticationCredential
Creates a new CookieAuthenticationCredential instance. This function is used when importing sas-auth-browser globally.
See: CDN
Syntax
sasAuthBrowser.createCookieAuthenticationCredential(configuration): CookieAuthenticationCredential
Parameters
configuration: object
Configuration object for the credential.
Properties
url: string- The URL of the SAS Viya server that you are authenticating with.guest: boolean- (Optional) Automatically log in as a guest, if no user session is found.- Default value:
false
- Default value:
Returns
CookieAuthenticationCredential - A new instance of the
CookieAuthenticationCredential class.
Example
const sasAuthInstance = sasAuthBrowser.createCookieAuthenticationCredential({
url: 'https://my-viya-server.com',
guest: false,
});