# @types/passport-weibo

> TypeScript definitions for passport-weibo

Latest version **1.0.0** (published 2023-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/passport-weibo
pnpm add @types/passport-weibo
yarn add @types/passport-weibo
bun add @types/passport-weibo
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-12-08 |
| First published | 2023-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/passport-weibo
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-weibo
- npm.io page: https://npm.io/package/@types/passport-weibo

## Dependencies (2)

- [@types/passport](https://npm.io/package/@types/passport.md) *
- [@types/passport-oauth2](https://npm.io/package/@types/passport-oauth2.md) *

## Recent versions

- 1.0.0 (latest) — 2023-12-08

## README

# Installation
> `npm install --save @types/passport-weibo`

# Summary
This package contains type definitions for passport-weibo (https://github.com/xinbenlv/passport-weibo#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-weibo.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-weibo/index.d.ts)
````ts
import { Profile } from "passport";
import { Strategy as OAuth2Strategy, VerifyCallback } from "passport-oauth2";

declare namespace PassportWeibo {
    interface Options {
        clientID: string;
        clientSecret: string;
        callbackURL: string;
        authorizationURL?: string;
        tokenURL?: string;
        scopeSeparator?: string;
        customHeaders?: Record<string, string>;
    }

    interface User extends Profile {
        provider: "weibo";
        id: string;
        displayName: string;
        _raw: object;
        _json: object;
    }

    type UserProfileCallback = (err: Error | null, user: User) => void;

    type VerifyFunction = (accessToken: string, refreshToken: string, profile: User, done: VerifyCallback) => void;

    class Strategy extends OAuth2Strategy {
        constructor(options: Options, verify: VerifyFunction);

        userProfile(accessToken: string, done: UserProfileCallback): void;
    }
}
export = PassportWeibo.Strategy;

````

### Additional Details
 * Last updated: Fri, 08 Dec 2023 02:18:14 GMT
 * Dependencies: [@types/passport](https://npmjs.com/package/@types/passport), [@types/passport-oauth2](https://npmjs.com/package/@types/passport-oauth2)

# Credits
These definitions were written by [bangbang93](https://github.com/bangbang93).

---
_Source: https://npm.io/package/@types/passport-weibo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
