feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
15
api.hyungi.net/node_modules/@simplewebauthn/server/script/metadata/parseJWT.js
generated
vendored
Normal file
15
api.hyungi.net/node_modules/@simplewebauthn/server/script/metadata/parseJWT.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseJWT = parseJWT;
|
||||
const index_js_1 = require("../helpers/iso/index.js");
|
||||
/**
|
||||
* Process a JWT into Javascript-friendly data structures
|
||||
*/
|
||||
function parseJWT(jwt) {
|
||||
const parts = jwt.split('.');
|
||||
return [
|
||||
JSON.parse(index_js_1.isoBase64URL.toUTF8String(parts[0])),
|
||||
JSON.parse(index_js_1.isoBase64URL.toUTF8String(parts[1])),
|
||||
parts[2],
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user