1.1.0 • Published 9 months ago
playfab_async v1.1.0
A promisify wrapper for PlayFab
The purpose is to make it easy to use async and await when working with the PlayFab SDK Both async/await and 'then().cacth()' can be used.
import {PlayFabAsync} from "playfab_async";
let res;
try {
res = await PlayFabAsync.Client.LoginWithEmailAddress({
Email: "some@mail.com",
Password: "some_password"
});
} catch (e) {
res = e;
}
import {PlayFabAsync} from "playfab_async";
const res = PlayFabAsync.Client.LoginWithEmailAddress({
Email: "some@mail.com",
Password: "some_password"
}).then(e => e).catch(err => err);