Skip to content

Conversation

@atinux
Copy link
Contributor

@atinux atinux commented Jun 18, 2019

Bonus: I added $auth in context for easier usage in asyncData

This PR is to enhance the DX on the callback redirect page to support SSR redirect.

It also avoid calling the provider (ex: GitHub) if the query params are not on the callback route.

Before:

nuxt-auth-oauth-csr

After:

nuxt-auth-oauth-ssr

@atinux atinux closed this Jun 18, 2019
@atinux atinux deleted the ssr-oauth2 branch June 18, 2019 15:19
@atinux atinux restored the ssr-oauth2 branch June 18, 2019 15:28
@atinux atinux reopened this Jun 18, 2019
@atinux atinux added the WIP label Jun 18, 2019
@atinux atinux changed the title feat(oauth2): Support server-side feat(oauth2): Support server-side for callback page Jun 18, 2019
@atinux atinux changed the title feat(oauth2): Support server-side for callback page feat(oauth2): [DX] Support server-side for callback page Jun 18, 2019
@codecov
Copy link

codecov bot commented Jun 18, 2019

Codecov Report

Merging #381 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #381   +/-   ##
===================================
  Coverage   100%   100%           
===================================
  Files         1      1           
  Lines         2      2           
===================================
  Hits          2      2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79e7318...c9b6cd1. Read the comment docs.

@atinux atinux requested a review from pi0 June 21, 2019 13:07
@atinux atinux removed the WIP label Jun 21, 2019
@pi0 pi0 changed the title feat(oauth2): [DX] Support server-side for callback page feat(oauth2): support server-side callback Jun 23, 2019
@pi0 pi0 merged commit af550d4 into dev Jun 23, 2019
@pi0 pi0 deleted the ssr-oauth2 branch June 23, 2019 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants