Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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