Customer session


Refresh Customer token


Refreshes the Customer’s current token.

An error is returned when the Customer is not logged in or the token has expired and cannot be refreshed.

Declared In

lib/modules/client/client_impl.dart

Method

Future<void> refreshToken()

Return Value

There is no return value.

Example

await  Synerise.client.refreshToken().catchError((error)

Retrieve Customer token


Retrieves the Customer’s current, active token.

An error is returned when the Customer is not logged in or the token has expired and cannot be refreshed.

Declared In

lib/modules/client/client_impl.dart

lib/model/client/token.dart

Method

Future<Token> retrieveToken()

Return Value

lib/model/client/token.dart

Example

Token token = await  Synerise.client.retrieveToken().catchError((error)

Get current Customer UUID


Retrieve the Customer’s current UUID.

Declared In

lib/modules/client/client_impl.dart

Method

Future<String> getUUID()

Return Value

String

Example

String uuid = await  Synerise.client.getUUID().catchError((error)

Regenerate Customer


Regenerate the UUID and clear the authentication token, login session, custom email, and custom identifier.

This operation works only if the Customer is anonymous.

Declared In

lib/modules/client/client_impl.dart

Method

Future<void> regenerateUUID()

Return Value

There is no return value.

Example

await  Synerise.client.regenerateUUID().catchError((error)

Destroy current session


Destroys the whole session completely.

Declared In

lib/modules/client/client_impl.dart

Method

Future<void> destroySession()

Return Value

There is no return value.

Example

await  Synerise.client.destroySession().catchError((error)
😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker