2020-07-17 13:24:20 +03:00
|
|
|
import * as Constants from "~/node_common/constants";
|
|
|
|
|
2020-08-30 23:14:56 +03:00
|
|
|
/*
|
2020-07-17 13:24:20 +03:00
|
|
|
import { createPow } from "@textile/powergate-client";
|
|
|
|
|
|
|
|
// NOTE(jim):
|
|
|
|
// https://github.com/textileio/js-powergate-client
|
|
|
|
const Powergate = createPow({ host: Constants.POWERGATE_HOST });
|
|
|
|
|
2020-07-24 02:56:50 +03:00
|
|
|
export const createNewToken = async () => {
|
|
|
|
const FFS = await Powergate.ffs.create();
|
|
|
|
return FFS.token ? FFS.token : null;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const get = (user) => {
|
|
|
|
Powergate.setToken(user.data.tokens.pg);
|
|
|
|
return Powergate;
|
|
|
|
};
|
2020-08-30 23:14:56 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
export const createNewToken = async () => {
|
|
|
|
return null;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const get = (user) => {
|
|
|
|
return {};
|
|
|
|
};
|