# @types/riderize__passport-strava-oauth2

> TypeScript definitions for @riderize/passport-strava-oauth2

Latest version **2.1.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/riderize__passport-strava-oauth2
pnpm add @types/riderize__passport-strava-oauth2
yarn add @types/riderize__passport-strava-oauth2
bun add @types/riderize__passport-strava-oauth2
```

## 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 | 2.1.6 |
| Published | 2023-11-07 |
| First published | 2020-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.1.6 (latest) — 2023-11-07
- 2.1.2 (ts4.3) — 2023-09-01
- 2.1.1 (ts3.7) — 2021-07-08
- 1.1.0 (ts3.2) — 2020-10-12
- 2.1.5 — 2023-10-18
- 2.1.4 — 2023-09-27
- 2.1.3 — 2023-09-27
- 2.1.0 — 2021-06-05
- 2.0.0 — 2021-06-04
- 1.1.1 — 2021-05-25

## README

# Installation
> `npm install --save @types/riderize__passport-strava-oauth2`

# Summary
This package contains type definitions for @riderize/passport-strava-oauth2 (https://github.com/Riderize/passport-strava-oauth2).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/riderize__passport-strava-oauth2.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/riderize__passport-strava-oauth2/index.d.ts)
````ts
/* eslint-disable @definitelytyped/no-declare-current-package */
// eslint-disable-next-line @definitelytyped/no-single-declare-module
declare module "@riderize/passport-strava-oauth2" {
    import { Request } from "express";

    interface Profile {
        provider: string;
        id: string;
        fullName: string;
        name: {
            familyName: string;
            givenName: string;
        };
        photos?:
            | Array<{
                value: string;
            }>
            | undefined;
        token?: string | undefined;

        _raw: string;
        _json: any;
    }

    interface StrategyOption {
        clientID: string;
        clientSecret: string;
        callbackURL: string;

        authorizationURL?: string | undefined;
        tokenURL?: string | undefined;
        profileURL?: string | undefined;
    }

    interface StrategyOptionWithRequest extends StrategyOption {
        passReqToCallback: true;
    }

    type VerifyFunction = (
        accessToken: string,
        refreshToken: string,
        profile: Profile,
        done: (error: any, user?: any, info?: any) => void,
    ) => void;

    type VerifyFunctionWithRequest = (
        req: Request,
        accessToken: string,
        refreshToken: string,
        profile: Profile,
        done: (error: any, user?: any, info?: any) => void,
    ) => void;

    class Strategy {
        constructor(options: StrategyOption, verify: VerifyFunction);
        constructor(options: StrategyOptionWithRequest, verify: VerifyFunctionWithRequest);

        name: string;
        authenticate(req: Request, options?: object): void;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express)

# Credits
These definitions were written by [edilson](https://github.com/edilson).

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