Initial working google auth

This commit is contained in:
JBB0807 2025-04-16 10:49:46 -07:00
parent fb52d49f74
commit 00a40f6bba
1058 changed files with 114441 additions and 0 deletions

21
auth-service/node_modules/uid2/HISTORY.md generated vendored Normal file
View file

@ -0,0 +1,21 @@
# 0.0.4 - August 24, 2021
- Add _README.md_
- Add `repository` field to _package.json_
- Add `license` field to _package.json_
- Removed unused var, added param documentation
# 0.0.3 - July 6, 2013
- Add MIT License
- Change string generation to not rely internally on base64 byte buffer encoding
- Change string generation to only use the 62 latin alphanumeric chars
- Switch from `crypto.randomBytes()` to `crypto.pseudoRandomBytes()`
# 0.0.2 - February 25, 2013
- Make unique ids safe for use in URLs (Using 62 latin alphanumeric chars, `-` and `_`)
# 0.0.1 - February 4, 2013
- Initial Release

21
auth-service/node_modules/uid2/LICENSE generated vendored Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2013 Marco Aurelio
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

32
auth-service/node_modules/uid2/README.md generated vendored Normal file
View file

@ -0,0 +1,32 @@
# uid2
[![NPM version](https://badge.fury.io/js/uid2.svg)](http://badge.fury.io/js/uid2)
Generate unique ids. Pass in a `length` and it returns a `string`.
## Installation
npm install uid2
## Examples
Without a callback it is synchronous:
```js
uid(10)
// => "hbswt489ts"
```
With a callback it is asynchronous:
```js
uid(10, function (err, id) {
if (err) throw err;
// id => "hbswt489ts"
});
```
## License
MIT

55
auth-service/node_modules/uid2/index.js generated vendored Normal file
View file

@ -0,0 +1,55 @@
/**
* Module dependencies
*/
var crypto = require('crypto');
/**
* 62 characters in the ascii range that can be used in URLs without special
* encoding.
*/
var UIDCHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
/**
* Make a Buffer into a string ready for use in URLs
*
* @param {String} bytes a Buffer containing the bytes to convert
* @returns {String} UID
* @api private
*/
function tostr(bytes) {
var r, i;
r = [];
for (i = 0; i < bytes.length; i++) {
r.push(UIDCHARS[bytes[i] % UIDCHARS.length]);
}
return r.join('');
}
/**
* Generate an Unique Id
*
* @param {Number} length The number of chars of the uid
* @param {Number} cb (optional) Callback for async uid generation
* @api public
*/
function uid(length, cb) {
if (typeof cb === 'undefined') {
return tostr(crypto.pseudoRandomBytes(length));
} else {
crypto.pseudoRandomBytes(length, function(err, bytes) {
if (err) return cb(err);
cb(null, tostr(bytes));
})
}
}
/**
* Exports
*/
module.exports = uid;

12
auth-service/node_modules/uid2/package.json generated vendored Normal file
View file

@ -0,0 +1,12 @@
{
"name": "uid2",
"description": "strong uid",
"tags": ["uid"],
"version": "0.0.4",
"repository": {
"type": "git",
"url": "https://github.com/coreh/uid2.git"
},
"license": "MIT",
"dependencies": {}
}