-
Notifications
You must be signed in to change notification settings - Fork 3
/
waasSetup.ts
42 lines (36 loc) · 1.21 KB
/
waasSetup.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { SequenceWaaS } from "@0xsequence/waas";
import { KeychainSecureStoreBackend } from "@0xsequence/react-native";
import { MMKV } from "react-native-mmkv";
const projectAccessKey = "AQAAAAAAAI9WEA9-IwH6yjyN0Ts0jEK-8Qk";
const waasConfigKey =
"eyJwcm9qZWN0SWQiOjM2Njk0LCJycGNTZXJ2ZXIiOiJodHRwczovL3dhYXMuc2VxdWVuY2UuYXBwIn0=";
export const webGoogleClientId =
"970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com";
export const iosGoogleClientId =
"970987756660-eu0kjc9mda0iuiuktoq0lbme9mmn1j8m.apps.googleusercontent.com";
export const iosGoogleRedirectUri =
"com.googleusercontent.apps.970987756660-eu0kjc9mda0iuiuktoq0lbme9mmn1j8m";
const storage = new MMKV();
const localStorage = {
get: async (key: string) => {
return storage.getString(key) ?? null;
},
set: async (key: string, value: string) => {
if (value === null) {
storage.delete(key);
return;
}
storage.set(key, value);
},
};
export const initialNetwork = "arbitrum-sepolia";
export const sequenceWaas = new SequenceWaaS(
{
network: initialNetwork,
projectAccessKey: projectAccessKey,
waasConfigKey: waasConfigKey,
},
localStorage,
null,
new KeychainSecureStoreBackend()
);