mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
rebuild tokenrequest obj on login api
This commit is contained in:
@@ -55,6 +55,10 @@ function initApiService() {
|
||||
ApiService.prototype.postIdentityToken = function (tokenRequest, success, successWithTwoFactor, error) {
|
||||
var self = this;
|
||||
|
||||
// Hack for Edge. For some reason tokenRequest loses proto. Rebuild it here.
|
||||
tokenRequest = new TokenRequest(tokenRequest.email, tokenRequest.masterPasswordHash, tokenRequest.provider,
|
||||
tokenRequest.token, tokenRequest.remeber, tokenRequest.device);
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: self.identityBaseUrl + '/connect/token',
|
||||
|
||||
Reference in New Issue
Block a user