question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always asking for log in after killing the app and opening(not storing authorized state)

See original GitHub issue

Hi, In your android sample after log in successful it is directing to Token activity. But when I close the app and open again it is again asking for log in. Following condition is always failing. I checking in your sdk it is maintaining state in shared pref but why it is not working.

if (mAuthStateManager.getCurrent().isAuthorized() && !mConfiguration.hasConfigurationChanged()) { Log.i(TAG, "User is already authenticated, proceeding to token activity"); startActivity(new Intent(this, TokenActivity.class)); finish(); return; }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
iainmcgincommented, Jul 11, 2017

@tikurahul I think @prashanthd means that the demo app is not correctly handling saved state. This is likely a bug in the demo app; I’ll investigate when I get some time.

0reactions
iainmcgincommented, Aug 8, 2017

Fix is merged; closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to keep android applications always be logged in state?
This depends on the actual server - side implementation of that form. But remember: This is an security issue. So never store authorization...
Read more >
Authentication Required window stuck after login - Ask Ubuntu
press Alt + F2 , type r then Enter. or. in terminal, type killall -3 gnome-shell. This should just restart Gnome Shell. You...
Read more >
iPhone keeps asking for Apple ID password
Either way, select Always Require at the top, authenticate if it asks, then select Require After 15 Minutes. And then authenticate again.
Read more >
Salesforce CLI: auth web login issue
I properly installed CLI. In a command window, I enter: sfdx force:auth:web:login -d -a DevHub in order to log in to the trial...
Read more >
Force stop and clear cache: Here's what you need to know
After the app has been killed, the next step is to delete the data in the cache directory. When an application needs a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found