AxelNennker / firefox_credentials

Implementation of the W3C Credential Management API
3 stars 0 forks source link

Implement PasswordCredential #2

Open AxelNennker opened 9 years ago

AxelNennker commented 9 years ago

As a website developer I want to create a new PasswordCredential object by writing e.g.:

var credential = new PasswordCredential("JaneDoe98","MfPeRQq5P3yVry68Q4KZMMhB");

Please note the difference to the current spec which requires an objects as parameter:

var credential = new PasswordCredential({
  "id": "JaneDoe98",
  "password": "MfPeRQq5P3yVry68Q4KZMMhB"
});

This is not possible with the current WebIDL.