mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-04 09:04:04 +00:00
Initial work towards authentication
This commit is contained in:
@@ -516,6 +516,10 @@ module W3DHubLauncher
|
||||
FileUtils.mkdir_p(W3DHubLauncher::CONFIG_PATH)
|
||||
File.write(W3DHubLauncher::SETTINGS_FILE_PATH, query.data)
|
||||
|
||||
if @settings&.account&.signed_in?
|
||||
@w3dhub_api.access_token = @settings.account.access_token
|
||||
end
|
||||
|
||||
result.data = query.data
|
||||
rescue => e
|
||||
result.error = e
|
||||
|
||||
Reference in New Issue
Block a user