GET | /vipps/login/callback |
---|
"use strict";
/** @typedef {'Home'|'Work'|'Other'} */
export var VippsAddressType;
(function (VippsAddressType) {
VippsAddressType["Home"] = "Home"
VippsAddressType["Work"] = "Work"
VippsAddressType["Other"] = "Other"
})(VippsAddressType || (VippsAddressType = {}));
export class VippsAddress {
/** @param {{addressType?:VippsAddressType,country?:string,formatted?:string,postalCode?:string,region?:string,streetAddress?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?VippsAddressType} */
addressType;
/** @type {string} */
country;
/** @type {string} */
formatted;
/** @type {string} */
postalCode;
/** @type {string} */
region;
/** @type {string} */
streetAddress;
}
export class VippsUserInfo {
/** @param {{address?:VippsAddress,birthdate?:string,email?:string,emailVerified?:boolean,familyName?:string,givenName?:string,name?:string,phoneNumber?:string,sessionIdentifier?:string,subjectIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {VippsAddress} */
address;
/** @type {?string} */
birthdate;
/** @type {?string} */
email;
/** @type {?boolean} */
emailVerified;
/** @type {string} */
familyName;
/** @type {string} */
givenName;
/** @type {string} */
name;
/** @type {string} */
phoneNumber;
/** @type {string} */
sessionIdentifier;
/** @type {string} */
subjectIdentifier;
}
JavaScript VippsLoginCallbackRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /vipps/login/callback HTTP/1.1 Host: unstable-consumer-api.brovs.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"vippsUserInfo":{"address":{"addressType":"Home","country":"String","formatted":"String","postalCode":"String","region":"String","streetAddress":"String"},"birthdate":"0001-01-01T00:00:00.0000000+00:00","email":"String","emailVerified":false,"familyName":"String","givenName":"String","name":"String","phoneNumber":"String","sessionIdentifier":"String","subjectIdentifier":"String"},"nextRelativeUrl":"String"}