PageSourceSearch

https://www.geteverwise.com/milos-chunk-OAuthRoutes-426.eec3df353543094e.js

js geteverwise.com collected 2026-10-02 03:52:51 UTC 1,130 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkspas=globalThis.webpackChunkspas||[]).push([[426],{72031(e,t,a){a.r(t),a.d(t,{default:()=>b});var l=a(96540),r=a(41479),n=a(17905),c=a(21498);const s=e=>{let{fallbackRoute:t}=e;const a=(0,r.zy)(),s=(0,c.xo)(),{provider:u}=(0,n.um)(a),o=(0,c.QL)(a);let h;return u&&(h={provider:u,label:""}),l.useEffect(()=>{h&&s.oauthSignIn(h,o)},[s,h,o]),h?null:l.createElement(r.rd,{to:t})};var u=a(10086),o=a(53506),h=a(10343);const p=()=>{const e=(0,r.W6)(),t=(0,r.zy)(),a=(0,c.xo)(),n=(0,u.wA)();return l.useEffect(()=>{a.handleOAuthResponse(t,"Callback").then(t=>{let{user:a,state:l}=t;const r=(0,h.WG)(a,l.targetPath,!!l.force);e.replace(r)},t=>{let a="/users/sign_in";t instanceof c.W5&&t.state&&t.state.targetPath&&(a=t.state.targetPath),n((0,o.Iw)("danger",t.message)),e.replace(a)})},[a,n,e,t]),null},b=e=>{let{fallbackRoute:t}=e;const a=(0,r.W5)();return l.createElement(r.dO,null,l.createElement(r.qh,{exact:!0,path:`${a.url}/authorize`},l.createElement(s,{fallbackRoute:a.url})),l.createElement(r.qh,{exact:!0,path:`${a.url}/callback`},l.createElement(p,null)),l.createElement(n.N3,{to:t}))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.