EvanOnboardingService¶
| Source | onboarding |
|---|
Onboarding wrapper service, with some utility functions. Primary used by the core-dapps/onboarding Dapp.
isOnboarded¶
onboarding.isOnboarded(accountId);
Check if the account id is onboarded. Uses a custom created blockchain-core profile => not depending on global core instance
Parameters¶
accountId-string: account id to check
Returns¶
boolean: True if onboarded, False otherwise.
getOnboardingQueryParams¶
onboardingService.getOnboardingQueryParams();
Get the current onboarding params with default values.
Returns¶
any: Original query parameters from the page from which we were redirected to onboarding.
Example¶
// https://dashboard.test.evan.network/#/dashboard.evan
onboardingService.getOnboardingQueryParams();
// => { "origin": "dashboard.evan" }
finishOnboarding¶
initializedModule.finishOnboarding();
Finish onboarding process.
- update blockchain-core for current provider and accountId
- navigate to dashboard or latest route
Example¶
onboardingService.finishOnboarding();