aad_b2c_webview icon indicating copy to clipboard operation
aad_b2c_webview copied to clipboard

Refreshtoken fails when scopes are omitted

Open filip8600 opened this issue 1 month ago • 0 comments

When i try to aquire a fresh token with a refreshtoken based on the example, the request fails:

  B2CAuthEntity(
    refreshToken: _refreshTokenController.text.trim(),
    userFlowName: aadB2CUserFlowName,
    tenantBaseUrl: aadB2CUserAuthFlow,
    clientId: aadB2CClientID,
  ),
);

The above call results in a null-exceptions from the map method.

If i supply an empty scope, the request works:

  B2CAuthEntity(
    refreshToken: _refreshTokenController.text.trim(),
    userFlowName: aadB2CUserFlowName,
    tenantBaseUrl: aadB2CUserAuthFlow,
    clientId: aadB2CClientID,
   providedScopes: "",
  ),
);

filip8600 avatar Nov 06 '25 13:11 filip8600