Flairtable Docs

Sign out

Table of Contents

To sign a user out use the signOut method. This method returns a Flairtable instance without authentication. It also clears the stored sign-ins from local and session storage.

Code samples

const authenticatedFlairtable = await Flairtable({apiKey: 'YOUR_API_KEY',})
.signIn('YOUR_BASE_ID', 'EMAIL', 'PASSWORD', 'session');
const flairtableWithoutAuthentication = authenticatedFlairtable.signOut();
const base = flairtableWithoutAuthentication.base('YOUR_BASE_ID');

If you want to react to changes in auth state, check out the onAuthChange guide.