playfab_async
v1.1.0
Published
A promisify wrapper for PlayFab
Downloads
16
Maintainers
Readme
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: "[email protected]",
Password: "some_password"
});
} catch (e) {
res = e;
}
import {PlayFabAsync} from "playfab_async";
const res = PlayFabAsync.Client.LoginWithEmailAddress({
Email: "[email protected]",
Password: "some_password"
}).then(e => e).catch(err => err);