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

After successful Authentication - AccessToken is not returning JWT & client.refreshAccessToken() throws exception #1473

Open
Prathiv7 opened this issue Nov 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Prathiv7
Copy link

Bug Description

print(client.accessTokenExpiresAt);
print(client.accessToken);
await client.refreshAccessToken();

Log
I/flutter (28245): null
I/flutter (28245): syt_Z3Jvb3D0ZXN0_urzfZFrTpiCFvpTRipEv_3d1pav
I/flutter (28245): [Matrix] Benchmark: Get Client from store -> 0 ms
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: No refresh token available
E/flutter (28245): #0 Client.refreshAccessToken (package:matrix/src/client.dart:294:7)
E/flutter (28245):
E/flutter (28245): #1 ChatListView.build.. (package:fluffychat/pages/chat_list/chat_list_view.dart:146:31)
E/flutter (28245):

Steps to Reproduce

  1. SSO login to matrix homeserver
  2. Programmatically log's access token and call refreshAccessToken fun from matrix's instance

Expected Behavior

AccessToken in JWT format & refreshAccessToken() should refresh new access token

App Version

1.22.0+3535

Additional Platform Information

Android 13 - Moto g32

Additional Context

No response

@Prathiv7 Prathiv7 added the bug Something isn't working label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant