guilded-next-auth
TypeScript icon, indicating that this package has built-in type declarations

1.0.1ย โ€ขย Publicย โ€ขย Published

authlink-next-auth

GitHub npm CI workflows

๐Ÿ“ฅ Installation

You can install this package from NPM

  • npm install next-auth-guilded
  • yarn add next-auth-guilded

โšก Usage

import express, { Request, Response } from "express";
import multer from "multer";
import { CloudflareStorage } from "next-auth-guilded";

const app = express();
const uploader = multer({
    storage: new CloudflareStorage("YOUR_CLOUDFLARE_ACCOUNT_ID_HERE", "YOUR_CLOUDFLARE_ACCOUNT_TOKEN_HERE")
});

app.post("/", uploader.single("image"), (req: Request, _res: Response) => {
    console.log(req.file);
    // {
    //     fieldname: 'image',
    //     originalname: 'PLACEHOLDER_IMAGE_NAME.jiff',
    //     encoding: '7bit',
    //     mimetype: 'application/octet-stream',
    //     path: 'https://imagedelivery.net/PLACEHOLDER_ACCOUNT_ID/PLACEHOLDER_IMAGE_ID/public',
    //     filename: null,
    //     destination: 'PLACEHOLDER_IMAGE_ID'
    // }
});

โœ‹ Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Please ensure any and all commits pass our tests, linting, and build steps as described in the root package.json.

โš–๏ธ LICENSE

Licensed under the MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i guilded-next-auth

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.17 kB

Total Files

8

Last publish

Collaborators

  • nico.03727