Skip to content

Commit

Permalink
More accurate accesstoken type
Browse files Browse the repository at this point in the history
  • Loading branch information
phicoder committed Mar 31, 2022
1 parent a4ff2b6 commit 92b3c8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FigmaDriver/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import { Oauth2Driver, RedirectRequest } from '@adonisjs/ally/build/standalone'
import { FigmaScopes } from './FigmaScopes'
import { FigmaUserResponse } from './FigmaUserResponse'
import { DateTime } from 'luxon'

export type FigmaDriverAccessToken = {
token: string
type: 'bearer'
refreshToken: string
user_id: number
expiresIn: number
expiresAt: DateTime
}

export type FigmaDriverConfig = {
Expand Down

0 comments on commit 92b3c8c

Please sign in to comment.