Skip to content

Commit

Permalink
fix: Error with second refresh token
Browse files Browse the repository at this point in the history
Closes msnraju#1
  • Loading branch information
mcorvaisier37 committed Oct 15, 2021
1 parent 27c4e02 commit e14ebdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OAuth2.0/OAuth20Application.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@ codeunit 50101 "OAuth 2.0 App. Helper"
Application."Ext. Expires In" := JToken.AsValue().AsInteger();
'access_token':
begin
clear(Application."Access Token");//Erase old token
Application."Access Token".CreateOutStream(OStream, TextEncoding::UTF8);
OStream.WriteText(JToken.AsValue().AsText());
end;
'refresh_token':
begin
Clear(Application."Refresh Token");//Erase old token
Application."Refresh Token".CreateOutStream(OStream, TextEncoding::UTF8);
OStream.WriteText(JToken.AsValue().AsText());
end;
Expand Down

0 comments on commit e14ebdf

Please sign in to comment.