AxeWP / wp-graphql-headless-login

A WordPress plugin that provides Headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OpenID Connect, JWT, and more.
GNU General Public License v3.0
72 stars 11 forks source link

feat: expose `refreshToken.authTokenExpiration` #116

Closed justlevine closed 9 months ago

justlevine commented 9 months ago

What

This PR adds the authTokenExpiration field to the refreshToken mutation payload.

Why

API oversight, flagged by @richardaubin in Slack

How

Testing Instructions

mutation refreshToken(
  $token: String! # The user's refreshToken.
) {
  refreshToken( input: {refreshToken: $token} ) {
    authToken
    authTokenExpiration # 👈
    success
  }
}

Additional Info

Checklist:

coveralls commented 9 months ago

Coverage Status

coverage: 82.619% (+0.05%) from 82.571% when pulling acb3972335ba703c5ff60096b9d87415313d0e72 on justlevine:feat/refreshToken-authTokenExpiration into a4e0771e1554ca232209de3f5297efb8cb09d249 on AxeWP:develop.

richardaubin commented 9 months ago

tried it... works fine.