Started rewriting SignIn component to use new V3 API. TODO methods: Google, Apple and SMS
This commit is contained in:
12
src/app/chatenium.token.ts
Normal file
12
src/app/chatenium.token.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { InjectionToken } from '@angular/core';
|
||||
import { environment } from '../environments/environment';
|
||||
import { ChateniumClient } from 'chatenium-sdk-preview';
|
||||
|
||||
export const CHATENIUM_SDK = new InjectionToken<ChateniumClient>('CHATENIUM_SDK', {
|
||||
providedIn: 'root',
|
||||
factory: () => {
|
||||
return new ChateniumClient({
|
||||
baseUrl: environment.api_url
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user