{"id":44,"date":"2020-10-14T17:15:14","date_gmt":"2020-10-14T22:15:14","guid":{"rendered":"http:\/\/blog.prestigecode.com\/?p=44"},"modified":"2020-10-14T17:15:14","modified_gmt":"2020-10-14T22:15:14","slug":"sanctum-antilobby","status":"publish","type":"post","link":"https:\/\/blog.prestigecode.com\/index.php\/2020\/10\/14\/sanctum-antilobby\/","title":{"rendered":"Sanctum &#038; Antilobby"},"content":{"rendered":"\n<p>Issues: Upgrading Laravel 8 &amp; Jetstream<\/p>\n\n\n\n<p>It took me a while to sort out some issues with upgrading API\/ to Laravel 8 and resolving Jetstream issues. I had previous issues with Laravel\/Fortify giving errors for some reason when I tried to uninstall Jetstream. So I have decided to keep Jetstream logic there.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Exploring Options: Sanctum<\/p>\n\n\n\n<p>It took me a while to find what I wanted to go with, in terms of authentication for the new API features that I&#8217;ll continue building. I found that Sanctum offers exactly what I want and I&#8217;ve decided to go with it to guard API access. After ironing out Sanctum issues and testing token assignment and seeing if I could actually get it working&#8230; I decided to try and implement the login features for Antilobby. They are, for the most part, working. The Antilobby app sends a request to the new API and successfully obtains auth tokens. I haven&#8217;t programmed any logic using the tokens from Antilobby, but that&#8217;s simply because I need to finish the app time creation and saving. Right now I only have session creation and saving. Exciting that everything seems to be coming together. It has taken a lot of time to switch to Laravel but I am beginning to see the benefits of using it. Stay tuned and watch out for Antilobby updates. \ud83d\ude0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issues: Upgrading Laravel 8 &amp; Jetstream It took me a while to sort out some issues with upgrading API\/ to Laravel 8 and resolving Jetstream issues. I had previous issues with Laravel\/Fortify giving errors for some reason when I tried to uninstall Jetstream. So I have decided to keep Jetstream logic there. Exploring Options: Sanctum [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[17,19],"_links":{"self":[{"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/posts\/44"}],"collection":[{"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":1,"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/posts\/44\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.prestigecode.com\/index.php\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}