Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hint to core functionality called early #1130

Merged
merged 9 commits into from
Mar 18, 2020
6 changes: 6 additions & 0 deletions core/src/core-api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ class LuigiAuth {
* @property {string} idToken - id token, used for renewing authentication
*/
get store() {
if (!LuigiConfig.initialized) {
console.warn(
'Luigi Core is not initialized yet. Consider moving your code to the luigiAfterInit lifecycle hook. ' +
'Documentation: https://docs.luigi-project.io/docs/lifecycle-hooks'
);
}
return {
/**
* Retrieves the key name that is used to store the auth data.
Expand Down