Appstitch connects the most powerful SaaS tools for your app. Build faster and securely
Appstitch Core is required for all integrations. It is used to initialize an app client.
Install
npm install @appstitch/core
appstitch_core: ^2.0.0
Install Peer Dependency Appstitch Types
npm install @appstitch/types
N/A
Usage
Initialize Appstitch in your root file
import appstitch from "@appstitch/core";
appstitch.initialize({
appStitchKey:"your_stitch_key",
clientID : "your_client_id"
url : "custom.domain.com" // Only required for paid plans
});
import 'package:appstitch_core/options.dart';
import 'package:appstitch_core/core.dart';
final core = Core();
final config =
Options(appStitchKey: "your_stitch_key", clientID: "your_client_id");
core.initialize(config);
Authentication
User authentication protects your integrations from abuse. Once a user has logged in and recieves a token, the token be be set like this
appstitch.setAuthToken("abc123");
core.setAuthToken("abc123");
Tokens can be created in two ways
Appstitch Authenthication
The Appstitch Auth library can be used for passwordless user management. Passwordless authentication reduces the friction for users to sign up and ensures only users with valid emails can use your app!
A token/GUID can be created with or youw own user management flow. You need to create callback to verify a valid token. Your authentication callback can be set on the Appstitch