Tutorial: Platform.wrap

Platform.wrap

Asynchronously returns a Platform object that represents an existing platform.

const { identity } = fin.me;
const platform = await fin.Platform.wrap(identity);
// Use wrapped instance to control layout, e.g.:
const snapshot = await platform.getSnapshot();