UNPKG
@nerdlat/auth
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
Authentication library similar to Clerk for React and Express applications
@nerdlat/auth
/
dist
/
services
/
tokenExchange.js
8 lines
(7 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
exchangeCodeForToken
= exchangeCodeForToken;
async
function
exchangeCodeForToken
(
provider, code
) {
//
TODO:
provider specific token exchange
return
{
accessToken
:
''
}; }